Few fixes.

This commit is contained in:
Antoine Nguyen
2014-12-03 17:04:20 +01:00
parent 987483c035
commit 34992af7af
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -40,6 +40,7 @@ Settings.prototype = {
* Navigation callback: extensions.
*/
extensions_callback: function(data) {
this.select_left_menu();
if (data.content) {
$('#' + this.options.divid).html(data.content);
}
+3 -1
View File
@@ -297,6 +297,7 @@ class IMAPconnector(object):
self.capabilities = data[0].split()
def logout(self):
"""Logout from server."""
try:
self._cmd("CHECK")
except ImapError:
@@ -304,7 +305,8 @@ class IMAPconnector(object):
self._cmd("LOGOUT")
del self.m
self.m = None
del self.current_mailbox
if hasattr(self, "current_mailbox"):
del self.current_mailbox
def parse_search_parameters(self, criterion, pattern):
"""Parse search information and apply them."""