Message of migrated list showing "unsubscribe@%(host_name)s" in footer
Apologies if I've not found a previous post for this; I did look before starting a new thread.
We migrated a number of mailman lists last weekend and I spotted this evening that an email from the list contained a footer along the lines of the following (all bits in CAPITALS were successfully representing the list.
===== LISTNAME mailing-list -- LISTNAME@DOMAIN To unsubscribe, email LISTNAME-unsubscribe@%(host_name)s
- I don't know why %(host_name)s hasn't been automagically substituted
- I can't find anywhere to change this footer in the Mailman3 Postorius interface
On 10/8/23 16:03, alex@presland.net wrote:
We migrated a number of mailman lists last weekend and I spotted this evening that an email from the list contained a footer along the lines of the following (all bits in CAPITALS were successfully representing the list.
===== LISTNAME mailing-list -- LISTNAME@DOMAIN To unsubscribe, email LISTNAME-unsubscribe@%(host_name)s
- I don't know why %(host_name)s hasn't been automagically substituted
- I can't find anywhere to change this footer in the Mailman3 Postorius interface
The mailman import21
process creates templates for existing 2.1
regular and digest headers and footers in Mailman 3's
var/templates/lists/LIST_ID/LC/ directory. LIST_ID is the list's id like
listname.example.com and LC is the language code for the list's
preferred language. These have names like
list:member:regular:header.txt, list:member:digest:header.txt,
list:member:regular:footer.txt and list:member:digest.footer.txt.
These are based on the mailman 2.1 lists regular and digest headers and footers with replacements translated to the appropriate Mailman 3 equivalents. However, there are various reasons why some replacements can't be translated, and these are left as is.
in your case you need to edit those files and change %(host_name)s to $(domain}, or, since the default mailman/templates/en/list\:member\:generic\:footer.txt is
_______________________________________________
$display_name mailing list -- $listname
To unsubscribe send an email to ${short_listname}-leave@${domain}
just deleting the var/templates/lists/LIST_ID/en/list:member:regular:footer.txt file will probably do what you want.
Note that templates defined in Postorius are handled differently, and if a template is currently undefined in Postorius, starting to define it in Postorius starts with an empty template instead of the current file system template. See https://gitlab.com/mailman/postorius/-/issues/366
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Apologies for the delayed reply. That worked perfectly - all sorted now! :-)
participants (2)
-
alex@presland.net
-
Mark Sapiro