summaryrefslogtreecommitdiffstats
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:00:37 +0200
commit944a395dc2f00cca7e47b506b7c1224657ccc557 (patch)
tree7e26365131bafa1c9d1d8e96af9a54a6f78c4c25
parent3a209a1668221e4e2cba904e26eee991a3bf021a (diff)
downloadpykolab-944a395dc2f00cca7e47b506b7c1224657ccc557.tar.gz
Return user_attrs['mail'], which exists, while mail is not set
-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 59146c1..f9949de 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