On Tue, Oct 15, 2002 at 11:44:46AM +0700, Robert Nicholson spanked upon the
buttocks of Barbie in Morse Code:
In order to do this I want to add custom headers to the incoming
messages in my filter.
How is it possible to modify the incoming message from within a filter?
Disclaimer: I'm a 2nd-day n00b.
That said, try this as your destination:
|(formail -A"Header: Description")>$MAILDIR/copy
this will add, as you say. To replace, use -I instead of -A, and to replace
but create an "Old-Headername:" header use -i.
Does procmail see the filters stdout?
I believe so - that's what it uses to deliver to the mailbox.
The filter sees the message via stdin obviously but how do I mess about
with that?
I'm not sure what you mean by "mess about"...
Anyway, HTH.
--
-Stephan
http://www.sauerburger.org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail