procmail
[Top] [All Lists]

Re: store all headers ??

2001-09-04 08:14:57
Tuesday, September 04, 2001, 8:43:52 AM, David W. Tamkin wrote:

DWT> First, Timothy, uninstall that horrible MUA you're using that messes with
DWT> "Re:"

Yeah I'm not thrilled with that either.

I'm trying (have not bought) TheBat as I'm trying to get an MUA more
robust that Outlook, which bites the big kaooey.


DWT> and send to eternal damnation (you can do that, can't you?) the creep
DWT> who tricked you into buying it.  "

We try to minimize the eternal damnation stuff whenever possible ;-)


DWT> What happens if you add the `b' flag?  Will metamail accept the headless
DWT> body and process it the way you want?  Note that without the `B' flag
DWT> procmail will still search the head, not the body, for the regexp in the
DWT> condition, as you want.

metamail needs the header information to figure out the correct MIME
type encoding.

If I send it just the body, the filename for the attachment gets
mucked up, which is what I was trying to avoid.



DWT> If not, there's always this hack:

DWT>  :0
DWT>  * ^Content-Type: multipart/mixed
DWT>  {
DWT>   :0fwh
DWT>   | sed -e1h -e1!H -e\$G

DWT>   :0fwb #body now includes spare copy of head
DWT>   | metamail -q -x
DWT>  }

Oh, I like that :-)

Thanks -- that seems to work.  I have to test it against some other
abominations like HTML mail, but this makes for a nice, clean
anti-MIME filter.

Once I have it tested and working better, I'll post it to the list in
its revised form.

Thanks!

TjL

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>