On 10/16/24 08:42, Alex I wrote:

I tried creating a custom Handler (custom_header.py) in 3.3.19, adding 
outgoing_pipeline = custom_header in config [mta] section but it doesn't seem 
to be activating.

First, can you accomplish what you want with a custom list:member:regular:header template? See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/templates.html#templated-texts

If not and you need a custom handler, you have a couple of choices.

You can patch the default_posting_pipeline at mailman/pipelines/builtin.py to add your handler to the _default_handlers after installing it in mailman/handlers/. This will require you to reapply the patch after any upgrade.

You can create a plugin which defines a new pipeline which includes your new handler and set the posting_pipeline attribute of your list(s) to the name of your new pipeline. See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/plugins/docs/intro.html for some documentation and https://gitlab.com/mailman/example-mailman-plugin/-/tree/master for an example.

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/MPTSEWK3ZNTLX23L7T5SGV3WYFE6JAMU/

This message sent to arch...@mail-archive.com

Reply via email to