On 5/8/19 4:45 AM, Henrik Rasmussen wrote:
Mark Sapiro wrote:
I'll post a follow-up with how to change pass_types via mailman shell when I work it out.
Look forward to that, thanks.
OK.
in mailman shell with your list as 'm'
list(m.pass_types) ['multipart/mixed', 'multipart/alternative', 'text/plain'] m.pass_types = ['multipart', 'text/plain', 'text/html'] commit() list(m.pass_types) ['multipart', 'text/plain', 'text/html']
If you want to allow text from forwarded messages, add 'message/rfc822' in the pass_types list above.
This setting will allow inspection of all elementary parts within any multipart parts ant will accept only text/plain and text/html.
Then if collapse_alternatives is True (settable here or in Postorius), any multipart/alternative parts will by replaced by the first, presumably text/plain, sub-part.
Finally, if convert_html_to_plaintext is True (settable here or in Postorius), any remaining text/html parts will be converted to plain text by lynx or whatever is configured as html_to_plain_text_command in mailman.cfg.
This will ensure that filter_action is applied only to those messages which have no text/plain or text/html parts.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan