summaryrefslogtreecommitdiff
path: root/src/mailman/app/notifications.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-04 13:53:22 -0500
committerBarry Warsaw2012-03-04 13:53:22 -0500
commit73f497133ca7cadc91cdec9b87b80d2886f11472 (patch)
treea79df6a7ab5280fdc593878dca1f352bb6e8dee9 /src/mailman/app/notifications.py
parentd4b4c6c1857b0b337d17c594a35524c9e6bf8366 (diff)
downloadmailman-73f497133ca7cadc91cdec9b87b80d2886f11472.tar.gz
mailman-73f497133ca7cadc91cdec9b87b80d2886f11472.tar.zst
mailman-73f497133ca7cadc91cdec9b87b80d2886f11472.zip
Diffstat (limited to 'src/mailman/app/notifications.py')
-rw-r--r--src/mailman/app/notifications.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mailman/app/notifications.py b/src/mailman/app/notifications.py
index 84561a306..5604d5f05 100644
--- a/src/mailman/app/notifications.py
+++ b/src/mailman/app/notifications.py
@@ -64,8 +64,11 @@ def send_welcome_message(mlist, address, language, delivery_mode, text=''):
"""
if mlist.welcome_message_uri:
try:
- welcome_message = getUtility(ITemplateLoader).get(
- mlist.welcome_message_uri)
+ uri = expand(mlist.welcome_message_uri, dict(
+ listname=mlist.fqdn_listname,
+ language=language.code,
+ ))
+ welcome_message = getUtility(ITemplateLoader).get(uri)
except URLError:
log.exception('Welcome message URI not found ({0}): {1}'.format(
mlist.fqdn_listname, mlist.welcome_message_uri))
@@ -94,7 +97,7 @@ def send_welcome_message(mlist, address, language, delivery_mode, text=''):
else:
digmode = ''
msg = UserNotification(
- formataddr((user_name, address)),
+ formataddr((user_name, address)),
mlist.request_address,
_('Welcome to the "$mlist.real_name" mailing list${digmode}'),
text, language)