Giter Club home page Giter Club logo

Comments (6)

pazz avatar pazz commented on May 28, 2024

just bumped into this again, refining my filters.
How come it tries to open /home/pazz/mail//home/pazz/Maildir/... anyway?
suspicious..

from afew.

 avatar commented on May 28, 2024

I too am getting this using notmuch 0.19+103~g294bb6d

Traceback (most recent call last):
  File "/home/frankqux/.local/bin/afew", line 9, in <module>
    load_entry_point('afew==0.0.0', 'console_scripts', 'afew')()
  File "/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/commands.py", line 205, in main
    inner_main(options, database, query_string)
  File "/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/main.py", line 38, in main
    filter_.run(query_string)
  File "/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/filters/BaseFilter.py", line 73, in run
    self.handle_message(message)
  File "/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/filters/HeaderMatchingFilter.py", line 41, in handle_message
    value = message.get_header(self.header)
  File "/usr/local/lib/python2.7/dist-packages/notmuch/message.py", line 233, in get_header
    raise NullPointerError()
notmuch.errors.NullPointerError

Also, is this not the same as #35 ?

from afew.

varac avatar varac commented on May 28, 2024

I'm getting this too just now, using few 1.3.0 and notmuch 0.25.1:

ยป afew --tag --new --verbose --verbose
Traceback (most recent call last):
  File "/home/varac/.local/bin/afew", line 11, in <module>
    load_entry_point('afew==1.3.0', 'console_scripts', 'afew')()
  File "/home/varac/.local/lib/python2.7/site-packages/afew-1.3.0-py2.7.egg/afew/commands.py", line 159, in main
    inner_main(args, database, query_string)
  File "/home/varac/.local/lib/python2.7/site-packages/afew-1.3.0-py2.7.egg/afew/main.py", line 23, in main
    filter_.run(query_string)
  File "/home/varac/.local/lib/python2.7/site-packages/afew-1.3.0-py2.7.egg/afew/filters/BaseFilter.py", line 60, in run
    self.handle_message(message)
  File "/home/varac/.local/lib/python2.7/site-packages/afew-1.3.0-py2.7.egg/afew/filters/HeaderMatchingFilter.py", line 28, in handle_message
    value = message.get_header(self.header)
  File "/usr/lib/python2.7/dist-packages/notmuch/message.py", line 233, in get_header
    raise NullPointerError()
notmuch.errors.NullPointerError

Unfortunatly I can't debug further b/c afew doesn't even tell my which mail it chokes on. Adding more `--verbose`` flags doesn't increase the verbosity.

from afew.

varac avatar varac commented on May 28, 2024

Same after upgrading to notmuch 0.26 and also after downgrading afew to 1.2.0 :o

from afew.

GuillaumeSeren avatar GuillaumeSeren commented on May 28, 2024

@varac looks the same issue but I am not sure it is the best to dig up such an old issue (2012),
anyway as it seems to be related to your notmuch database when you run afew.

Can you reproduce the bug with older version of afew ?

from afew.

agrudzinsky avatar agrudzinsky commented on May 28, 2024

For me, the error happens only when running the [ListMailsFilter]. It seems to die when processing a specific email, but I can't tell which one and why. If I comment [ListMailsFilter] in the configuration file, the error does not occur.

:!afew --tag --all -v                                                                                                                                                 
INFO:afew.filters.KillThreadsFilter.KillThreadsFilter:Looking for messages in killed threads that are not yet killed
INFO:afew.filters.ArchiveSentMailsFilter.ArchiveSentMailsFilter:Archiving all mails sent by myself to others
INFO:afew.filters.ArchiveSentMailsFilter.ArchiveSentMailsFilter:Committing changes to 5289 messages
INFO:afew.filters.ListMailsFilter.ListMailsFilter:Tagging mailing list posts
Traceback (most recent call last):
  File "/usr/bin/afew", line 11, in <module>
    load_entry_point('afew==1.3.0', 'console_scripts', 'afew')()
  File "/usr/lib/python3.7/site-packages/afew/commands.py", line 159, in main
    inner_main(args, database, query_string)
  File "/usr/lib/python3.7/site-packages/afew/main.py", line 23, in main
    filter_.run(query_string)
  File "/usr/lib/python3.7/site-packages/afew/filters/BaseFilter.py", line 60, in run
    self.handle_message(message)
  File "/usr/lib/python3.7/site-packages/afew/filters/HeaderMatchingFilter.py", line 28, in handle_message
    value = message.get_header(self.header)
  File "/usr/lib/python3.7/site-packages/notmuch/message.py", line 265, in get_header
    raise NullPointerError()
notmuch.errors.NullPointerError

shell returned 1
$ afew --version
1.3.0
$ notmuch --version
notmuch 0.28

from afew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.