procmail
[Top] [All Lists]

Re: Getting the "pure" from-address.

2002-09-03 13:14:04
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?


        /Tony
-- 
# Per scientiam ad libertatem! // Through knowledge towards freedom! #
# Genom kunskap mot frihet! =*= (c) 1999-2002 tony(_at_)svanstrom(_dot_)com =*= 
#

     perl -e'print$_{$_} for sort%_=`lynx -dump svanstrom.com/t`'

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