{"action":"created","issue":{"url":"https://api.github.com/repos/teythoon/afew/issues/43","labels_url":"https://api.github.com/repos/teythoon/afew/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/teythoon/afew/issues/43/comments","events_url":"https://api.github.com/repos/teythoon/afew/issues/43/events","html_url":"https://github.com/teythoon/afew/issues/43","id":8328428,"number":43,"title":"catch NullPointerError in case mail file doesn't exist?","user":{"login":"pazz","id":628455,"avatar_url":"https://avatars.githubusercontent.com/u/628455?v=3","gravatar_id":"","url":"https://api.github.com/users/pazz","html_url":"https://github.com/pazz","followers_url":"https://api.github.com/users/pazz/followers","following_url":"https://api.github.com/users/pazz/following{/other_user}","gists_url":"https://api.github.com/users/pazz/gists{/gist_id}","starred_url":"https://api.github.com/users/pazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pazz/subscriptions","organizations_url":"https://api.github.com/users/pazz/orgs","repos_url":"https://api.github.com/users/pazz/repos","events_url":"https://api.github.com/users/pazz/events{/privacy}","received_events_url":"https://api.github.com/users/pazz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-11-13T17:07:58Z","updated_at":"2015-04-21T18:14:27Z","closed_at":null,"body":"```\r\n[~] afew -t -a                                                              1 ↵  \r\nError opening /home/pazz/mail//home/pazz/Maildir/Sent/new/1345574901.M170094P32649Q1.brick:2,S: No such file or directory\r\nTraceback (most recent call last):\r\n  File \"/home/pazz/.local/bin/afew\", line 189, in <module>\r\n    main(options, query_string)\r\n  File \"/home/pazz/.local/lib/python2.7/site-packages/afew/main.py\", line 33, in main\r\n    filter_.run(query_string)\r\n  File \"/home/pazz/.local/lib/python2.7/site-packages/afew/Filter.py\", line 61, in run\r\n    self.handle_message(message)\r\n  File \"/home/pazz/.local/lib/python2.7/site-packages/afew/filters/SpamFilter.py\", line 32, in handle_message\r\n    if message.get_header('X-Spam-Flag') == 'YES':\r\n  File \"/home/pazz/.local/lib/python2.7/site-packages/notmuch/message.py\", line 233, in get_header\r\n    raise NullPointerError()\r\nnotmuch.errors.NullPointerError\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/teythoon/afew/issues/comments/94893295","html_url":"https://github.com/teythoon/afew/issues/43#issuecomment-94893295","issue_url":"https://api.github.com/repos/teythoon/afew/issues/43","id":94893295,"user":{"login":"frankqux","id":12053123,"avatar_url":"https://avatars.githubusercontent.com/u/12053123?v=3","gravatar_id":"","url":"https://api.github.com/users/frankqux","html_url":"https://github.com/frankqux","followers_url":"https://api.github.com/users/frankqux/followers","following_url":"https://api.github.com/users/frankqux/following{/other_user}","gists_url":"https://api.github.com/users/frankqux/gists{/gist_id}","starred_url":"https://api.github.com/users/frankqux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankqux/subscriptions","organizations_url":"https://api.github.com/users/frankqux/orgs","repos_url":"https://api.github.com/users/frankqux/repos","events_url":"https://api.github.com/users/frankqux/events{/privacy}","received_events_url":"https://api.github.com/users/frankqux/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T18:14:27Z","updated_at":"2015-04-21T18:14:27Z","body":"I too am getting this using `notmuch 0.19+103~g294bb6d`\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/home/frankqux/.local/bin/afew\", line 9, in <module>\r\n    load_entry_point('afew==0.0.0', 'console_scripts', 'afew')()\r\n  File \"/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/commands.py\", line 205, in main\r\n    inner_main(options, database, query_string)\r\n  File \"/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/main.py\", line 38, in main\r\n    filter_.run(query_string)\r\n  File \"/home/frankqux/.local/lib/python2.7/site-packages/afew-0.0.0-py2.7.egg/afew/filters/BaseFilter.py\", line 73, in run\r\n    self.handle_message(message)\r\n  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\r\n    value = message.get_header(self.header)\r\n  File \"/usr/local/lib/python2.7/dist-packages/notmuch/message.py\", line 233, in get_header\r\n    raise NullPointerError()\r\nnotmuch.errors.NullPointerError\r\n```\r\nAlso, is this not the same as ~~#35~~ ?"}}