summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/cli/cmd_transfer_mailbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_transfer_mailbox.py b/pykolab/cli/cmd_transfer_mailbox.py
index cef9ec1..56aab24 100644
--- a/pykolab/cli/cmd_transfer_mailbox.py
+++ b/pykolab/cli/cmd_transfer_mailbox.py
@@ -64,4 +64,5 @@ def execute(*args, **kw):
imap.connect(server=source_server)
imap.imap.xfer(mailfolder, target_server)
- auth.set_entry_attributes(domain, user, {'mailhost': target_server})
+ if not user == None and not len(user) < 1:
+ auth.set_entry_attributes(domain, user, {'mailhost': target_server})