1 message in net.sourceforge.lists.courier-maildrop[maildropl] reformail
FromSent OnAttachments
Tony EarnshawMay 1, 2004 8:44 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] reformailActions...
From:Tony Earnshaw (ton@billy.demon.nl)
Date:May 1, 2004 8:44:41 am
List:net.sourceforge.lists.courier-maildrop

G'day, list

*PLEASE DO NOT QUOTE THE BODY OF THIS MESSAGE, OR MY POSTFIX 2.1 PCRE REGEXP FILTER WILL REJECT YOUR POSTING* please, please, please do not. Thanks!

The maildrop distribution includes reformail. An Internet HOWTO just saved my sanity by detailing a method to remove duplicate Message-IDs in a Courier IMAP 3.0.2/Evolution 1.4 Maildir subfolder, on which a (my ;) wrongly-constructed Evo filter had run wild.

So I could get rid of the dupes, so my eyes were partly opened to what reformail can do, and I decided to play around with it. But it seems that what it calls "headers" are not *mime headers* as defined by rfc 3whatever it is, which are buried in the message body and referred to by header "Content-Type: multipart/mixed; boundary="----=_NextPart_" references. Is there a mailing list for reformail, or do people on this list have the necessary know-how to answer reformail questions?

A mail for which I wish to concatenate *mime header lines* is included below. My "test" reformail command is: 'reformail -c < test.eml|less'.

I wish to concatenate the mime header:

Content-Type: application/octet-stream; name="document.zip"

to:

Content-Type: application/octet-stream; name="document.zip"

Why? Because I run a Postfix 2.1 PCRE headers/bodies check on it, and I want to filter on the whole line, not just the line beginning with " name="document.zip"

Best and thanks from a clueless,

--Tonni

--

Return-path: <ton@billy.demon.nl> Received: from [192.168.1.98] (helo=billy.demon.nl) by mail.align.com.au with esmtp (Exim 4.12 #2 (Debian)) id 1AlKod-0003rN-00 for <darr@spamdjiam.com>; Tue, 27 Jan 2004 14:57:07 +1030 From: ton@billy.demon.nl To: darr@spamdjiam.com Subject: Hello Date: Tue, 27 Jan 2004 14:56:42 +1030 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0012_FDABCDC0.ECB19B59" X-Priority: 3 X-MSMail-Priority: Normal Message-Id: <E1Al@mail.align.com.au> X-Spam-Score: 4.1 (++++) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1AlKod-0003rN-00*H4c.1/ViMtc*

This is a multi-part message in MIME format.

------=_NextPart_000_0012_FDABCDC0.ECB19B59 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit

------=_NextPart_000_0012_FDABCDC0.ECB19B59 Content-Type: application/octet-stream; name="document.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="document.zip"

UEsDBAoAAAAAAFUjOzDKJx+eAFgAAABYAAAMAAAAZG9jdW1lbnQuc2NyTVqQAAMAAAAEAAAA//8A ALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUEUAAEwBAwAAAAAAAAAAAAAA AADgAA8BCwEHAABQAAAAEAAAAGAAAGC+AAAAcAAAAMAAAAAASgAAEAAAAAIAAAQAAAAAAAAABAAA

--

We make out of the quarrel with others rhetoric but out of the quarrel with ourselves, poetry.

mail: billy - at - billy.demon.nl http://www.billy.demon.nl