From 80a77efe595215da3ae836771f9dfc5cffd1cfd3 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 8 Jan 2014 23:33:13 -0400 Subject: Flag imap session for closing. Fixes: #4925 This will need a more serious investigation, since we're not shutting down all the imap-related objects, but will do for now to prevent access to different accounts while a session is initiated in the MUA. (tested with thunderbird). --- changes/bug_4925_close_imap_session | 1 + src/leap/bitmask/services/mail/conductor.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/bug_4925_close_imap_session diff --git a/changes/bug_4925_close_imap_session b/changes/bug_4925_close_imap_session new file mode 100644 index 00000000..f70b3e2b --- /dev/null +++ b/changes/bug_4925_close_imap_session @@ -0,0 +1 @@ +- Properly reset imap session on logout. Closes: #4925 diff --git a/src/leap/bitmask/services/mail/conductor.py b/src/leap/bitmask/services/mail/conductor.py index addf9bef..875b98ea 100644 --- a/src/leap/bitmask/services/mail/conductor.py +++ b/src/leap/bitmask/services/mail/conductor.py @@ -102,6 +102,7 @@ class IMAPControl(object): # Stop listening on the IMAP port self.imap_port.stopListening() # Stop the protocol + self.imap_factory.theAccount.closed = True self.imap_factory.doStop() def fetch_incoming_mail(self): -- cgit v1.2.3 From 50438b189c21d984d5697b0532a8960feaecdcb2 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 9 Jan 2014 18:02:39 -0400 Subject: bump version compat --- changes/VERSION_COMPAT | 1 + 1 file changed, 1 insertion(+) diff --git a/changes/VERSION_COMPAT b/changes/VERSION_COMPAT index cc00ecf7..1f523ccd 100644 --- a/changes/VERSION_COMPAT +++ b/changes/VERSION_COMPAT @@ -8,3 +8,4 @@ # # BEGIN DEPENDENCY LIST ------------------------- # leap.foo.bar>=x.y.z +leap.mail>=0.3.9 -- cgit v1.2.3