From 774b950da6d5414424706e13db850fb01d414983 Mon Sep 17 00:00:00 2001 From: "Victor \"multun\" Collod" Date: Mon, 11 Mar 2019 16:46:47 +0100 Subject: [PATCH] Fix IMAP mail deletion Fixes #53 --- todo/mail/producers/imap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo/mail/producers/imap.py b/todo/mail/producers/imap.py index 11740c5..977c76f 100644 --- a/todo/mail/producers/imap.py +++ b/todo/mail/producers/imap.py @@ -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: