Template - "You can use these variables in the templates" - The variable for "leave" is missing
The current template input page shows this text:
You can use these variables in the templates. $hyperkitty_url: Permalink to archived message in Hyperkitty $listname: Name of the Mailing List e.g. ant@example.com $list_id: The List-ID header e.g. ant.example.com $display_name: Display name of the mailing list e.g. Ant $short_listname: Local part of the listname e.g. ant $domain: The domain part of the listname e.g. example.com $info: The mailing list's longer descriptive text $request_email: The email address for -request address $owner_email: The email address for -owner address $site_email: The email address to reach the owners of the site $language: The two letter language code for list's preferred language e.g. fr, en, de
I suggest to add the variable for leaving a mailing list here. But what is the variable name?
On Fri, Nov 3, 2023 at 11:06 AM Wikinaut <mail@tgries.de> wrote:
The current template input page shows this text:
You can use these variables in the templates. $hyperkitty_url: Permalink to archived message in Hyperkitty $listname: Name of the Mailing List e.g. ant@example.com $list_id: The List-ID header e.g. ant.example.com $display_name: Display name of the mailing list e.g. Ant $short_listname: Local part of the listname e.g. ant $domain: The domain part of the listname e.g. example.com $info: The mailing list's longer descriptive text $request_email: The email address for -request address $owner_email: The email address for -owner address $site_email: The email address to reach the owners of the site $language: The two letter language code for list's preferred language e.g. fr, en, de
I suggest to add the variable for leaving a mailing list here. But what is the variable name?
To unsubscribe send an email to ${short_listname}-leave@${domain}
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
I suggest to add this is as a new variable $leave_email .
By the way: how can I access the _short_ list description text as a variable?
On 11/3/23 01:28, Wikinaut wrote:
I suggest to add this is as a new variable $leave_email .
By the way: how can I access the _short_ list description text as a variable?
See
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/t...
for information on the variables that can be used in templates. There
you will see the variable for "the mailing list’s short description
text" is description
. This is missing from the list displayed in
Postorius which needs updating for this and other reasons, e.g.
$hyperkitty_url is only available in regular headers and footers.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
fxied in merge request https://gitlab.com/mailman/postorius/-/merge_requests/852
Wikinaut writes:
fxied in merge request https://gitlab.com/mailman/postorius/-/merge_requests/852
I wish you wouldn't. It's just bloat in the code and in the docstring. Better to document that the administrative addresses can be constructed using ${short_listname}. I believe Mailman still supports both "list-leave" and "list-unsubscribe", as well.
Steve
On 11/4/23 06:28, Stephen J. Turnbull wrote:
Wikinaut writes:
fxied in merge request https://gitlab.com/mailman/postorius/-/merge_requests/852
I wish you wouldn't. It's just bloat in the code and in the docstring. Better to document that the administrative addresses can be constructed using ${short_listname}. I believe Mailman still supports both "list-leave" and "list-unsubscribe", as well.
Actually, https://gitlab.com/mailman/postorius/-/merge_requests/852 only added documentation of the existing $description replacement which is appropriate, but it duplicates part of https://gitlab.com/mailman/postorius/-/merge_requests/851 which does that and adds a bit more documentation.
Also see https://gitlab.com/mailman/mailman/-/issues/1108 and https://gitlab.com/mailman/mailman/-/merge_requests/1153
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Mark Sapiro
-
Odhiambo Washington
-
Stephen J. Turnbull
-
Wikinaut