procmail
[Top] [All Lists]

Re: Stripping Headers

2002-08-15 17:13:51
At 17:51 2002-08-15 -0400, Derek Yuen wrote:

I was checking the mail list archives, but I'm still a bit confused.

Hmm, perhaps 'man formail' would be of help?

I was wondering how i can use either formail or procmail to strip the
"From:" header and use another header "X-FC-Forwarded-From:" as the From
header?

OLDFROM=|formail -xFrom:

:0hf
| formail -I "From:" -I "X-FC-Forwarded-From: $OLDFROM"

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

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