[Mailman-Users] digest message modification
Mark Sapiro
mark at msapiro.net
Wed Sep 10 02:32:29 CEST 2008
Alan.Rubin at nt.gov.au wrote:
>
>Is there any way to strip out certain headers/lines from a message being shown
>in a digest format?
See the settings MIME_DIGEST_KEEP_HEADERS and PLAIN_DIGEST_KEEP_HEADERS
in defaults.py.
You can copy PLAIN_DIGEST_KEEP_HEADERS omitting Message-ID and
Content-Type and put the rest in mm_cfg.py. E.g.
PLAIN_DIGEST_KEEP_HEADERS = [
'Message', 'Date', 'From',
'Subject', 'To', 'Cc',
'Keywords',
]
Do not remove Content-Type from MIME_DIGEST_KEEP_HEADERS as that will
destroy the MIME format of the digest. People should only be selecting
the MIME format digest if their MUAs understand MIME (these days
almost all do) in which case they won't be seeing the actual
Content-Type header anyway.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list