summaryrefslogtreecommitdiff
path: root/src/mailman/app/notifications.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-04 02:53:44 -0500
committerBarry Warsaw2012-03-04 02:53:44 -0500
commit6c8cbfc327e05b11f22e675941f320731f3c79ce (patch)
treea594634a0f824b84e2e6645db913dcb0f6fee0ac /src/mailman/app/notifications.py
parentfe855654a1c67fad869c3035548b6f1b51350258 (diff)
downloadmailman-6c8cbfc327e05b11f22e675941f320731f3c79ce.tar.gz
mailman-6c8cbfc327e05b11f22e675941f320731f3c79ce.tar.zst
mailman-6c8cbfc327e05b11f22e675941f320731f3c79ce.zip
Diffstat (limited to 'src/mailman/app/notifications.py')
-rw-r--r--src/mailman/app/notifications.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/app/notifications.py b/src/mailman/app/notifications.py
index 3c31fbd23..84561a306 100644
--- a/src/mailman/app/notifications.py
+++ b/src/mailman/app/notifications.py
@@ -77,6 +77,7 @@ def send_welcome_message(mlist, address, language, delivery_mode, text=''):
# Find the IMember object which is subscribed to the mailing list, because
# from there, we can get the member's options url.
member = mlist.members.get_member(address)
+ user_name = member.user.real_name
options_url = member.options_url
# Get the text from the template.
text = expand(welcome, dict(
@@ -84,7 +85,7 @@ def send_welcome_message(mlist, address, language, delivery_mode, text=''):
list_name=mlist.real_name,
listinfo_uri=mlist.script_url('listinfo'),
list_requests=mlist.request_address,
- user_name=member.user.real_name,
+ user_name=user_name,
user_address=address,
user_options_uri=options_url,
))
@@ -93,7 +94,8 @@ def send_welcome_message(mlist, address, language, delivery_mode, text=''):
else:
digmode = ''
msg = UserNotification(
- address, mlist.request_address,
+ formataddr((user_name, address)),
+ mlist.request_address,
_('Welcome to the "$mlist.real_name" mailing list${digmode}'),
text, language)
msg['X-No-Archive'] = 'yes'