From 52bab82d7d451ffe48b70c15abd422f7a7cc6d6c Mon Sep 17 00:00:00 2001 From: Joshua Downer Date: Fri, 20 Dec 2013 06:40:56 -0500 Subject: [PATCH] imbox: call close() before logout The imaplib documentation recommends calling close() before logout to ensure that 'deleted messages are removed from writable mailbox.' --- imbox/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/imbox/__init__.py b/imbox/__init__.py index 23eb3e5..381b0e0 100644 --- a/imbox/__init__.py +++ b/imbox/__init__.py @@ -13,6 +13,7 @@ class Imbox(object): def logout(self): + self.connection.close() self.connection.logout() def query_uids(self, **kwargs):