Skip to content

Commit

Permalink
Fix IMAP mail deletion (#54)
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
multun authored and shacker committed Mar 12, 2019
1 parent 3b9c47c commit 70cac8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todo/mail/producers/imap.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def process_batch():

if not preserve:
# tag the message for deletion
conn.uid("STORE", message_uid, "+FLAGS", "(\\Deleted)")
conn.store(message_uid, '+FLAGS', '\\Deleted')
else:
logger.debug("did not receive any message")
finally:
Expand Down

0 comments on commit 70cac8b

Please sign in to comment.