procmail
[Top] [All Lists]

\[ works within [...] but \] doesn't

2003-11-15 08:49:54
Hello,

I am currently using the test recipe

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

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

which successfully moves a mail with the subject "v[iagra" to the
location specified by $MYSPAM:

procmail: Assigning "C=['/@#_!=,;: \"`$\.\*\+\-\?\^\(\)\[\]]"
procmail: Match on "^Subject:.*(v['/@#_!=,;: \"`$\.\*\+\-\?\^\(\)\[\]]?iagra)"
 Subject: v[iagra
  Folder: /home/roal/mail/IN.spam

But, when the "]" character is in the subject instead of "[", it does
not work:

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


That really seems strange to me, since "\]" is within the [...]
definition of possible characters, with no difference to "\[". Is this
a bug of procmail 3.21 or am I doing something 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>