procmail
[Top] [All Lists]

Re: Why - > No match on "^To:.*${TO}"

2004-08-29 11:45:51
On Sun, Aug 29, 2004 at 07:42:44PM +0200, Thomas Creutz wrote:

"Dallman Ross" <dman(_at_)nomotek(_dot_)com> schrieb im Newsbeitrag
news:20040829164620(_dot_)GB12059(_at_)panix(_dot_)com(_dot_)(_dot_)(_dot_)

TO=`formail -x "To:" | sed -e "s/^.*<//" | sed -e "s/>.*$//"`

That is much messier than it needs to be.

Try just

   TO=`formail -IReply-To: -fzrx To:`

This will give me the adress from the sender... and not the adress vom
the reciver

Yes, I didn't read carefully.  Here:

 TO=`formail -I Reply-To: -I Return-Path: -I From -R To: From: -fzrx From:`

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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