fix: readd the flag Deleted to delete a message

This commit is contained in:
Stephane Blondon
2018-07-31 13:17:18 +08:00
parent fd35764586
commit 4dc43d2ba2

View File

@@ -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):