procmail
[Top] [All Lists]

Re[2]: regex does not work when used as variable

2003-11-15 08:13:49
Hi Alan,

thanks! It worked.

best,
rob.

--
On Sat, 15 Nov 2003, 14:24 GMT+00 (15:24 local time) Alan Clifford
wrote:

On Thu, 13 Nov 2003, Robert Allerstorfer wrote:

RA>>
RA>> But, if I say
RA>>
RA>> C = "['/@#_!=,;: \\\"\`\$\.\*\+\-\?\^\(\)\[]"
RA>>
RA>> :0
RA>> * ^Subject:.*(v$C?iagra)
RA>> $MYSPAM
RA>>
RA>> id does not work. The log says:
RA>>
RA>> procmail: Assigning "C=['/@#_!=,;: \"`$\.\*\+\-\?\^\(\)\[]"
RA>> procmail: No match on "^Subject:.*(v$C?iagra)"
RA>>
RA>> Can anybody please point me what I did wrong?
RA>>


I can see two things.  You need to tell procmail to expand the variable
and you need to make sure it can identify that the variable is C rather
than, for example, C?iagra.

* $ ^Subject:.*(v${C}?iagra)


Alan


( Please do not email me AS WELL as replying to the list.  Please
  address personal email to alan+1@ as lists@ is not read. A
  password autoresponder may be invoked if this email is very old. )


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


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