Fix IMAP mail deletion

Fixes #53
This commit is contained in:
Victor "multun" Collod 2019-03-11 16:46:47 +01:00
parent 3b9c47cd7c
commit 774b950da6

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: