How to best disable message decoration for all lists defined for a domain
Hello list.
I have read [1] and [2], but I am not quite sure what the recommended method is to completely disable message headers/footers and subject modifications for *all* lists tied to a specific domain. Being new to Mailman 3, I was actually surprised that there are no configuration switches in the Web UI's settings for mailing lists that allow me to get rid of unwanted message decorations.
[1] https://mailman.readthedocs.io/en/latest/src/mailman/handlers/docs/decorate.... [2] https://mailman.readthedocs.io/en/latest/build/lib/mailman/rest/docs/templat...
Thanks for your input.
-Ralph
On 3/18/19 2:19 PM, Ralph Seichter wrote:
Hello list.
I have read [1] and [2], but I am not quite sure what the recommended method is to completely disable message headers/footers and subject modifications for *all* lists tied to a specific domain. Being new to Mailman 3, I was actually surprised that there are no configuration switches in the Web UI's settings for mailing lists that allow me to get rid of unwanted message decorations.
It's still a work in progress. You can do it via list settings except for one issue [1]. See that issue and also the post referenced in it's description [2].
To not modify the Subject for a list, on the list's Settings -> List Identity tab, set 'Subject prefix' empty.
To not add headers and or footers, you need empty templates for them. These could be created via the list's Templates form except until [1] is fixed, you can't make empty templates.
You can use the method in [2] to create empty var/templates/domains/DOMAIN.NAME/LC/list:member:generic:footer.txt and var/templates/domains/DOMAIN.NAME/LC/list:member:generic:header.txt files for the domain and language. Then as long as no list specific templates are created for lists in that domain, no headers or footers will be added.
[1] <https://gitlab.com/mailman/postorius/issues/331> [2] <https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/PZ35OS5RNO6V6OPGEJPEZDEVAONH4BUH/>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
- Mark Sapiro:
It's still a work in progress.
Of course. I did not mean to criticise, just point out what settings I was surprised not to find in the UI.
To not add headers and or footers, you need empty templates for them. These could be created via the list's Templates form except until [1] is fixed, you can't make empty templates.
I actually found a workaround in the meantime:
update template set uri='file:///dev/null' where id=123;
Not that I like to modify the underlying database manually, but it seems to do the trick for now.
-Ralph
On Mon, Mar 18, 2019, at 2:27 PM, Ralph Seichter wrote:
Hello list.
I have read 1 and [2], but I am not quite sure what the recommended method is to completely disable message headers/footers and subject modifications for *all* lists tied to a specific domain. Being new to Mailman 3, I was actually surprised that there are no configuration switches in the Web UI's settings for mailing lists that allow me to get rid of unwanted message decorations.
Yes, you are right and there aren't any ways to disable decorations. Can you please open an issue on Gitlab?
As a workaround, you can set an empty domain level template for header and footer and remove the subject prefix. There is an issue open on Postorius1 which doesn't allow empty templates, you need to add at least a blank space to create a template, which should result in similar looking message.
1 https://mailman.readthedocs.io/en/latest/src/mailman/handlers/docs/decorate.... [2] https://mailman.readthedocs.io/en/latest/build/lib/mailman/rest/docs/templat...
Thanks for your input.
-Ralph
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
- Abhilash Raj:
Yes, you are right and there aren't any ways to disable decorations. Can you please open an issue on Gitlab?
Done: https://gitlab.com/mailman/postorius/issues/345
-Ralph
participants (3)
-
Abhilash Raj
-
Mark Sapiro
-
Ralph Seichter