Skip to content

Commit

Permalink
Quote folder names in search query
Browse files Browse the repository at this point in the history
When using folder names containing whitespace characters (see PR #206)
the folder part of the notmuch search query needs to be quoted.

Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
  • Loading branch information
nicolasbock committed Jan 8, 2019
1 parent 9bc4da4 commit afd057f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion afew/MailMover.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MailMover(Database):
def __init__(self, max_age=0, rename = False, dry_run=False):
super(MailMover, self).__init__()
self.db = notmuch.Database(self.db_path)
self.query = 'folder:{folder} AND {subquery}'
self.query = 'folder:"{folder}" AND {subquery}'
if max_age:
days = timedelta(int(max_age))
start = date.today() - days
Expand Down

0 comments on commit afd057f

Please sign in to comment.