Fix IMAP mail deletion (#54)

Fixes #53
This commit is contained in:
multun 2019-03-12 07:28:40 +01:00 committed by Scot Hacker
parent 3b9c47cd7c
commit 70cac8b4e9

View file

@ -77,7 +77,7 @@ def imap_producer(
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: