summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2016-04-04 16:26:58 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-04-04 16:26:58 +0200
commitee3a4d5b11e6b7aa6f60c4cc5221472fd9c282b4 (patch)
treee1f4ed028fad9defe041372bd80e108734203b71
parent2cd249c1e1b9cb5d0db75230f5cd486753241308 (diff)
downloadpykolab-ee3a4d5b11e6b7aa6f60c4cc5221472fd9c282b4.tar.gz
Fix obvious code issues (#5371)
Summary: Fixes #5371 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen 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]