procmail
[Top] [All Lists]

regex does not work when used as variable

2003-11-15 06:58:26
Hi,

if I have

:0
* ^Subject:.*(v['/@#_!=,;: \\\"\`\$\.\*\+\-\?\^\(\)\[]?iagra)
$MYSPAM

in my ~/.procmailrc a mail with the subject "v iagra" will
successfully be moved into the location specified by $MYSPAM. The log
says

procmail: Match on "^Subject:.*(v['/@#_!=,;: 
\\\"\`\$\.\*\+\-\?\^\(\)\[]?]?iagra)"


But, if I say

C = "['/@#_!=,;: \\\"\`\$\.\*\+\-\?\^\(\)\[]"

:0
* ^Subject:.*(v$C?iagra)
$MYSPAM

id does not work. The log says:

procmail: Assigning "C=['/@#_!=,;: \"`$\.\*\+\-\?\^\(\)\[]"
procmail: No match on "^Subject:.*(v$C?iagra)"

Can anybody please point me what I did wrong?

thanks,
rob.


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