summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins/recipientpolicy/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/plugins/recipientpolicy/__init__.py')
-rw-r--r--pykolab/plugins/recipientpolicy/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pykolab/plugins/recipientpolicy/__init__.py b/pykolab/plugins/recipientpolicy/__init__.py
index 330ddfa..da1db06 100644
--- a/pykolab/plugins/recipientpolicy/__init__.py
+++ b/pykolab/plugins/recipientpolicy/__init__.py
@@ -111,7 +111,7 @@ class KolabRecipientpolicy(object):
user_attrs['preferredlanguage'] = default_locale
try:
- exec("alternative_mail_routines = %s" % kw['secondary_mail'])
+ alternative_mail_routines = eval("%s" % kw['secondary_mail'])
except Exception:
log.error(_("Could not parse the alternative mail routines"))
@@ -133,7 +133,7 @@ class KolabRecipientpolicy(object):
for number in alternative_mail_routines:
for routine in alternative_mail_routines[number]:
try:
- exec("retval = '%s'.%s" % (routine,alternative_mail_routines[number][routine] % user_attrs))
+ retval = eval("'%s'.%s" % (routine, alternative_mail_routines[number][routine] % user_attrs))
log.debug(_("Appending additional mail address: %s") % (retval), level=8)
alternative_mail.append(retval)
@@ -148,7 +148,7 @@ class KolabRecipientpolicy(object):
for _domain in kw['secondary_domains']:
user_attrs['domain'] = _domain
try:
- exec("retval = '%s'.%s" % (routine,alternative_mail_routines[number][routine] % user_attrs))
+ retval = eval("'%s'.%s" % (routine, alternative_mail_routines[number][routine] % user_attrs))
log.debug(_("Appending additional mail address: %s") % (retval), level=8)
alternative_mail.append(retval)