procmail
[Top] [All Lists]

Re: Help with INCLUDERC

2001-10-24 09:41:49
   :0
   * ^(From:|Sender:|Reply-To:)${AUTHLIST}
   ...

To get the variable to expand, use something like:

  * $ ^(From:|Sender:|Reply-To:).*${AUTHLIST}

You'll find the details in the procmailrc man page.
Note, also, that I've added '.*' to your condition as you will almost
certainly have something between the colon and the contents of
$AUTHLIST!

   
AUTHLIST=('Don(_dot_)Caprio(_at_)bankofamerica(_dot_)com|caprio|bankamerica.com|bankofamerica.com|dcms.com|uxpro.com|Caprio|Don')

Just as an aside, there's quite a bit of redundancy in there.  If
something matches with Don(_dot_)Caprio(_at_)bankofamerica(_dot_)com then it is 
also
going to match with caprio, bankofamerica.com, Caprio and Don.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</                  PGP key available
    `Procmail Companion'        \>\  http://www.ancient-scotland.co.uk
     Addison Wesley             /</    http://www.ehabitat.demon.co.uk
_______________________________________________
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>