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 19:26:32 +0100
commitf654d9d51a245a6fc3f6b0ff5412f442cbe8c99a (patch)
treedf60972f2831c35e2be76ee25c467ce85eb2b013
parentcac4578a364762b7b3240acc1e04f23c14d02ade (diff)
downloadpykolab-f654d9d51a245a6fc3f6b0ff5412f442cbe8c99a.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 5510e56..ff1bc6a 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])