procmail
[Top] [All Lists]

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

2004-08-29 09:45:56
* Thomas Creutz <thomas(_dot_)creutz(_at_)gmx(_dot_)de> [2004-08-29 09:13]:

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

Your problem is on this conditional line.  It should be:

*$^To:.*${TO}

You are not matching anything because your dollar sign is being
interpretted literally.

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