summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-12-13 11:13:40 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-12-13 11:37:50 +0100
commit27eff31b4d4a89416d12cf68932fb498a073b0fb (patch)
tree3c3b66c95a57b30fe5093897aa0daa40829b898a
parentdf69259ba359d1fc01427e102f407c2360ed459f (diff)
downloadpykolab-27eff31b4d4a89416d12cf68932fb498a073b0fb.tar.gz
A delegated mailbox may in fact not have a result attribute
-rw-r--r--wallace/module_invitationpolicy.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index a048aee..e4c3928 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -299,9 +299,13 @@ def execute(*args, **kw):
# extend with addresses from delegators
# (only do this lookup for REPLY messages)
receiving_user['_delegated_mailboxes'] = []
+
if itip_event['method'] == 'REPLY':
for _delegator in auth.list_delegators(recipient_user_dn):
- receiving_user['_delegated_mailboxes'].append(_delegator['_mailbox_basename'].split('@')[0])
+ if not _delegator['_mailbox_basename'] == None:
+ receiving_user['_delegated_mailboxes'].append(
+ _delegator['_mailbox_basename'].split('@')[0]
+ )
log.debug(_("Recipient emails for %s: %r") % (recipient_user_dn, recipient_emails), level=8)
break