summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-04 19:40:05 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-04 19:46:28 (GMT)
commit49acbe0b394d91c7fe7f6bd92513efcbb544978c (patch)
treebb53059946767929ad3f24095722ffecb1ab7021
parenta15fe609702bffb00e6fb47e5129acce2798a07b (diff)
downloadpykolab-49acbe0b394d91c7fe7f6bd92513efcbb544978c.tar.gz
Only recognize the folder as already existing, if no partition is specified
-rw-r--r--pykolab/cli/cmd_rename_mailbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_rename_mailbox.py b/pykolab/cli/cmd_rename_mailbox.py
index 87d41f3..4efed0d 100644
--- a/pykolab/cli/cmd_rename_mailbox.py
+++ b/pykolab/cli/cmd_rename_mailbox.py
@@ -66,7 +66,7 @@ def execute(*args, **kw):
print >> sys.stderr, _("Source folder %r does not exist") % (source_folder)
sys.exit(1)
- if imap.has_folder(target_folder):
+ if imap.has_folder(target_folder) and partition == None:
print >> sys.stderr, _("Target folder %r already exists") % (target_folder)
sys.exit(1)