imbox: call close() before logout
The imaplib documentation recommends calling close() before logout to ensure that 'deleted messages are removed from writable mailbox.'
This commit is contained in:
@@ -13,6 +13,7 @@ class Imbox(object):
|
||||
|
||||
|
||||
def logout(self):
|
||||
self.connection.close()
|
||||
self.connection.logout()
|
||||
|
||||
def query_uids(self, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user