diff options
| author | Barry Warsaw | 2012-03-03 23:29:26 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-03 23:29:26 -0500 |
| commit | 7e5470afdef0a60796cdb7974f30c46cfbfcbd4f (patch) | |
| tree | 9e788a48c0aeb4553b3b1fa966fc7ecb24be22f9 /src/mailman/app/notifications.py | |
| parent | e09c13199c2a60724ee601902a51a816e627e024 (diff) | |
| download | mailman-7e5470afdef0a60796cdb7974f30c46cfbfcbd4f.tar.gz mailman-7e5470afdef0a60796cdb7974f30c46cfbfcbd4f.tar.zst mailman-7e5470afdef0a60796cdb7974f30c46cfbfcbd4f.zip | |
* Support downloading templates by URI, including mailman:// URIs. This is
used in welcome and goodbye messages, and supports both language and
mailing list specifications. E.g. mailman:///test@example.com/it/welc.txt
* Schema changes:
- welcome_msg -> welcome_message_uri
- goodbye_msg -> goodbye_message_uri
- send_welcome_msg -> send_welcome_message
- send_goodbye_msg -> send_goodbye_message
* New `ITemplateLoader` utility.
Diffstat (limited to '')
| -rw-r--r-- | src/mailman/app/notifications.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/app/notifications.py b/src/mailman/app/notifications.py index c5d50d5e3..78801402b 100644 --- a/src/mailman/app/notifications.py +++ b/src/mailman/app/notifications.py @@ -54,8 +54,8 @@ def send_welcome_message(mlist, address, language, delivery_mode, text=''): :param delivery_mode: the type of delivery the subscriber is getting :type delivery_mode: DeliveryMode """ - if mlist.welcome_msg: - welcome = wrap(mlist.welcome_msg) + '\n' + if mlist.welcome_message_uri: + welcome = wrap(mlist.welcome_message_uri) + '\n' else: welcome = '' # Find the IMember object which is subscribed to the mailing list, because |
