procmail
[Top] [All Lists]

Re: How can I put more than one word in the VARIABLE ?

2002-05-24 06:50:10
On 24 May, S Semple wrote:
| The below recipe does not work. [...]
| 
| AAA='one two three'
| BBB='black white green'
| 
| :0
| * ^SUBJECT:.*"$AAA"
| 
| {
| :0 B:
| * .*"$BBB"
| ${TESTDIR}/Proctest.mail
| 
| }

As explained in my reply to one of your earlier messages, which
apparently came pretty close to crossing paths with this message of
yours, you're missing a '$' following the '*' that starts the condition.
The '$' tells procmail to expand the variables and without it you're
trying to literally match $BBB and not the contents of the variable
$BBB.

Loose the leading .* and the quotes on the condition and make it:

  * $ $BBB

-- 
Reply to list please, or append "6" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail