Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Paste
P4
(An Untitled Masterwork)
Active
Public
Actions
Authored by
vanmeeuwen
on Feb 4 2016, 5:26 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F106143:
Feb 4 2016, 5:26 PM
2016-02-04 17:26:31 (UTC+1)
Subscribers
None
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 21d918b..d6b8fc9 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -522,6 +522,9 @@ class IMAP(object):
if not hasattr(self, 'domain'):
self.domain == None
+ if self.domain == None and len(mailbox_base_name.split('@')) > 1:
+ self.domain = mailbox_base_name.split('@')[1]
+
if not self.domain == None:
if conf.has_option(self.domain, "autocreate_folders"):
_additional_folders = conf.get_raw(
Event Timeline
vanmeeuwen
created this paste.
Feb 4 2016, 5:26 PM
2016-02-04 17:26:31 (UTC+1)
•
momu162
mentioned this in
T4013: Deep Groove Ball Bearing
.
May 15 2018, 2:56 AM
2018-05-15 02:56:58 (UTC+2)
Log In to Comment