[Mailman-Users] Digest Format Change: Possible?

Mark Sapiro mark at msapiro.net
Sun Dec 21 17:46:43 CET 2008


J.A. Terranson wrote:
>
>Greetings, is it possibe to tar  digest and 
>turn this:
>
>| Message: 4
>| Date: Sat, 20 Dec 2008 12:12:18 -0600 (CST)
>| From: "J.A. Terranson" <measl at mfn.org>
>| Subject: [GasNet] Testing - Please Ignore.
>| To: ccm-l at ccm-l.org, med-events at ccm-l.org, med-jokes at ccm-l.org,
>|      gasnet at ccm-l.org
>| Message-ID: <Pine.LNX.4.64.0812201209360.11196 at mx1.mfn.org>
>| Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>into this:
>
>| Message: 4
>| Date: Sat, 20 Dec 2008 12:12:18 -0600 (CST)
>| From: "J.A. Terranson" <measl at mfn.org>
>| Subject: [GasNet] Testing - Please Ignore.
>
><removal of lines 4-6>?


You can control which headers appear in digest messages.

See the settings for MIME_DIGEST_KEEP_HEADERS and
PLAIN_DIGEST_KEEP_HEADERS in Defaults.py and either copy one or both
to mm_cfg.py and make the changes there or make the changes
programmatically in mm_cfg.py, e.g.

PLAIN_DIGEST_KEEP_HEADERS.remove('To')
PLAIN_DIGEST_KEEP_HEADERS.remove('Message-ID')
PLAIN_DIGEST_KEEP_HEADERS.remove('Content-Type')

Note that the entries in MIME_DIGEST_KEEP_HEADERS and
PLAIN_DIGEST_KEEP_HEADERS are not case sensitive, but the values in
statements like

PLAIN_DIGEST_KEEP_HEADERS.remove('To')

must match the case of the value to be removed.

Also note that for the plain (RFC 1153) format digest, the RFC
specifies that the headers 'Date', 'From', 'To', 'Cc', 'Subject',
'Message-ID' and 'Keywords' should all be retained in the digest if
they appeared in the original message. Thus, removing To: and
Message-ID: will make a non-compliant digest if you care about that.

I don't really understand what you would want in a 'tar' digest. Do you
mean a tarball containing each message as a separate file. That's
essentially what the MIME format digest is now except each message is
a MIME part rather than a file, but some MUAs will treat them as files.

-- 
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