Skip to content

Commit

Permalink
fix synchronisation of tags to maildir flags
Browse files Browse the repository at this point in the history
  • Loading branch information
paretje authored and pazz committed Mar 19, 2021
1 parent 486df70 commit 9fa8aaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alot/db/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def flush(self):
logging.debug('freeze')
for tag in tags:
msg.tags.add(tag)
if sync:
msg.tags.to_maildir_flags()
logging.debug('added tags ')
logging.debug('thaw')

Expand Down Expand Up @@ -134,6 +136,8 @@ def flush(self):
msg.tags.add(tag)
elif cmd == 'untag':
msg.tags.discard(tag)
if sync:
msg.tags.to_maildir_flags()

logging.debug('ended atomic')

Expand Down

0 comments on commit 9fa8aaf

Please sign in to comment.