summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_create_mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/cli/cmd_create_mailbox.py')
-rw-r--r--pykolab/cli/cmd_create_mailbox.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_create_mailbox.py b/pykolab/cli/cmd_create_mailbox.py
index 63ae0ad..6192b91 100644
--- a/pykolab/cli/cmd_create_mailbox.py
+++ b/pykolab/cli/cmd_create_mailbox.py
@@ -42,6 +42,14 @@ def cli_options():
help = _("Set metadata for folder to ANNOTATION=VALUE")
)
+ my_option_group.add_option(
+ '--partition',
+ dest = "partition",
+ action = "store",
+ default = None,
+ help = _("Create folder on PARTITION.")
+ )
+
def description():
return """Create a mailbox or sub-folder of an existing mailbox."""
@@ -63,7 +71,7 @@ def execute(*args, **kw):
imap = IMAP()
imap.connect()
- imap.create_folder(mailbox)
+ imap.create_folder(mailbox, partition=conf.partition)
if not conf.metadata == None:
imap.set_metadata(mailbox, conf.metadata.split('=')[0], conf.metadata.split('=')[1])