procmail
[Top] [All Lists]

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

2004-08-29 09:53:24
On Sun, Aug 29, 2004 at 05:45:17PM +0200, Thomas Creutz wrote:

SHELL=/bin/sh
PATH=$HOME/bin:/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local
/sbin

No need to set path in your rc under most circumstances.  I would
recommend against it.


LOGFILE=/var/log/procmail
LOGABSTRACT="all"
VERBOSE="on"

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:`

:0
*^To:.*${TO}
!${TO}


Your problem is that you are not using the $ expansor on your
condition, so $TO is not evaluated.

  * $ ^To:.*$TO

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