From 4dc43d2ba2aabcc6cdec499084dd88a8360b03f5 Mon Sep 17 00:00:00 2001 From: Stephane Blondon Date: Tue, 31 Jul 2018 13:17:18 +0800 Subject: [PATCH] fix: readd the flag Deleted to delete a message --- imbox/imbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/imbox/imbox.py b/imbox/imbox.py index 89fa616..f7b9de0 100644 --- a/imbox/imbox.py +++ b/imbox/imbox.py @@ -62,6 +62,7 @@ class Imbox: def delete(self, uid): logger.info("Mark UID {} with \\Deleted FLAG and expunge.".format(int(uid))) + self.connection.uid('STORE', uid, '+FLAGS', '(\\Deleted)') self.connection.expunge() def copy(self, uid, destination_folder):