summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2016-04-04 16:26:41 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-04-04 16:26:41 +0200
commit2cc8f2ac5c66220572abdd0323445a293d07712d (patch)
tree3a97369c7b6fe3aa05655b9e195f1dec8b8240e1
parent37368439ca308235daebee41d33c8fa8097a3b7b (diff)
downloadpykolab-2cc8f2ac5c66220572abdd0323445a293d07712d.tar.gz
Fix obvious code issues (#5371)
Summary: Fixes #5371 Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D118
-rw-r--r--pykolab/imap/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index afc65a8..545e6d7 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -374,8 +374,8 @@ class IMAP(object):
mode = 'subtract'
continue
if char == '+':
- continue
mode = 'add'
+ continue
acl_map[mode] += char
@@ -520,7 +520,7 @@ class IMAP(object):
_additional_folders = None
if not hasattr(self, 'domain'):
- self.domain == None
+ self.domain = None
if self.domain == None and len(mailbox_base_name.split('@')) > 1:
self.domain = mailbox_base_name.split('@')[1]