diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-08-09 13:39:59 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-08-09 13:39:59 +0100 |
commit | 433171ba6745cb252e2118757f50d648372618f1 (patch) | |
tree | d7e84a4852dbadbe0f873ab5b02bedd21c281d9e /pykolab | |
parent | 35775e2b6ab5be8ba4fd583cd30b11d20a6a18b8 (diff) | |
download | pykolab-433171ba6745cb252e2118757f50d648372618f1.tar.gz |
Only attempt to set the mailhost attribute on actual entries
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/cli/cmd_transfer_mailbox.py | 3 |
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}) |