procmail
[Top] [All Lists]

Re: Getting the "pure" from-address.

2002-09-04 02:07:35
Tony L. Svanstrom writes:
On Tue, 3 Sep 2002 the voices made Lars Hecking write:

FROM=`formail -rt -x "To:"`

 formail -r generates an auto-reply header, -t makes it use Reply-To: (if
 present in the original message) or From: instead of the envelope sender,
 and -x "To:" extracts the To: header, which formail has determined 
according
 the above.

 I'm sorry, it was a stupid question; I was even using it in my procmailrc
already in another place... don't know why I thought it was a problem.

 BUT... shouldn't there be a -z in your example, to deal with possible
whitespace?
 
 If that's a problem, sure, you can use -rtz.

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