summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 19:26:32 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 20:25:15 +0100
commitcebd042b87b5a85ea6f840b9c51c953dd0b9c282 (patch)
treed9fa7a82da8b6a5a7548e66f5d126b259b28896e
parent76cefcae360ddfec1b08018c70df45490abfd693 (diff)
downloadpykolab-cebd042b87b5a85ea6f840b9c51c953dd0b9c282.tar.gz
Use imap.create_folder() for kolab cm
-rw-r--r--pykolab/cli/cmd_create_mailbox.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pykolab/cli/cmd_create_mailbox.py b/pykolab/cli/cmd_create_mailbox.py
index 453b41e..63ae0ad 100644
--- a/pykolab/cli/cmd_create_mailbox.py
+++ b/pykolab/cli/cmd_create_mailbox.py
@@ -63,9 +63,7 @@ def execute(*args, **kw):
imap = IMAP()
imap.connect()
- admin_login = conf.get('cyrus-imap', 'admin_login')
-
- imap.cm(mailbox)
+ imap.create_folder(mailbox)
if not conf.metadata == None:
imap.set_metadata(mailbox, conf.metadata.split('=')[0], conf.metadata.split('=')[1])