Digest Format Change: Possible?

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@mfn.org> | Subject: [GasNet] Testing - Please Ignore. | To: ccm-l@ccm-l.org, med-events@ccm-l.org, med-jokes@ccm-l.org, | gasnet@ccm-l.org | Message-ID: <Pine.LNX.4.64.0812201209360.11196@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@mfn.org> | Subject: [GasNet] Testing - Please Ignore.
<removal of lines 4-6>?
Possible?????
Thanks,
//Alif

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@mfn.org> | Subject: [GasNet] Testing - Please Ignore. | To: ccm-l@ccm-l.org, med-events@ccm-l.org, med-jokes@ccm-l.org, | gasnet@ccm-l.org | Message-ID: <Pine.LNX.4.64.0812201209360.11196@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@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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
J.A. Terranson
-
Mark Sapiro