diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-05-16 20:00:37 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-05-16 20:44:16 +0200 |
commit | 62884c68f77046eb0e18075f0e0bd78c4e37eb8e (patch) | |
tree | 2c9ad5a059f76b8d47671ca481d36fe2fc81ed27 /pykolab/plugins | |
parent | 744c3f038b4befea35e4dad67acb0a42d1a10dd1 (diff) | |
download | pykolab-62884c68f77046eb0e18075f0e0bd78c4e37eb8e.tar.gz |
Return user_attrs['mail'], which exists, while mail is not set
Diffstat (limited to 'pykolab/plugins')
-rw-r--r-- | pykolab/plugins/recipientpolicy/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/plugins/recipientpolicy/__init__.py b/pykolab/plugins/recipientpolicy/__init__.py index 8ea2c89..4a19132 100644 --- a/pykolab/plugins/recipientpolicy/__init__.py +++ b/pykolab/plugins/recipientpolicy/__init__.py @@ -78,7 +78,7 @@ class KolabRecipientpolicy(object): except KeyError, e: log.warning(_("Attribute substitution for 'mail' failed in Recipient Policy")) if user_attrs.has_key('mail'): - return mail + return user_attrs['mail'] else: return None |