16 Nov
2023
16 Nov
'23
9:18 a.m.
Abhilash Raj writes:
You can implement a custom rule and a custom chain to do this, but you'd need to set that as the default chain on every existing list. Setting the default chain can be scripted using
mailman shell
pretty easily though.
I'd just
from mailman.config import config config.chains['default-posting-chain'].insert( right_place, vacation_program_considered_harmful_rule)
TBQH. If I was feeling really paranoid I'd search for the preceding and following rules expected, and if found insert there.
There really should be a default-posting-chain option (and default-posting-pipeline option for that matter) in schema.cfg.