Skip to content

Commit

Permalink
Merge pull request #216 from nicolasbock/mail_mover
Browse files Browse the repository at this point in the history
Quote folder names in search query
  • Loading branch information
GuillaumeSeren authored Jan 11, 2019
2 parents 9bc4da4 + afd057f commit 1f18447
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 1f18447

Please sign in to comment.