Skip to content

Commit

Permalink
fix #158
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli committed Aug 7, 2017
1 parent 19f29d9 commit 3405475
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions afew/NotmuchSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ def read_notmuch_settings(path = None):
notmuch_settings.readfp(open(path))

def get_notmuch_new_tags():
tags = notmuch_settings.get_list('new', 'tags')
try:
tags.remove("unread")
except ValueError:
pass
return tags
# see issue 158
return filter(lambda x: x != 'unread', notmuch_settings.get_list('new', 'tags'))

def get_notmuch_new_query():
return '(%s)' % ' AND '.join('tag:%s' % tag for tag in get_notmuch_new_tags())

0 comments on commit 3405475

Please sign in to comment.