procmail
[Top] [All Lists]

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

2002-05-24 07:44:46
S Semple is having trouble with variables containing whitspace.  He
thought it was a quoting problem, but the problem conditions look like:

| * .*"$BBB"

I responded:

| 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

First, and least important, that would be "lose" not "loose".

Second, the statement about literally matching $BBB is not literally
correct.  It is (I hope I get it right this time) trying to match end
of line ($) and the string BBB, as opposed to the string '$BBB'.  The
bottom line is the same. The OP needs a '$' to tell procmail to,
according to the man page, "Evaluate the remainder of this condition
according to sh(1) substitution rules inside double quotes, skip
leading whitespace, then reparse it."


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