summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins/recipientpolicy
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-16 20:00:37 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-16 20:44:16 +0200
commit62884c68f77046eb0e18075f0e0bd78c4e37eb8e (patch)
tree2c9ad5a059f76b8d47671ca481d36fe2fc81ed27 /pykolab/plugins/recipientpolicy
parent744c3f038b4befea35e4dad67acb0a42d1a10dd1 (diff)
downloadpykolab-62884c68f77046eb0e18075f0e0bd78c4e37eb8e.tar.gz
Return user_attrs['mail'], which exists, while mail is not set
Diffstat (limited to 'pykolab/plugins/recipientpolicy')
-rw-r--r--pykolab/plugins/recipientpolicy/__init__.py2
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