On Wed, Jul 28, 2004 at 01:57:16PM -0500, David W. Tamkin wrote:
Scott told Priscila,
Because ']' is a special character to procmail, you'll need to escape
it somehow. These will both work:
* ^Subject:.*re: (])$
* ^Subject:.*re: \]$
No, that's not it. The right bracket is special only if there's been a
left bracket to start a character class description (and not always
then). There's something else going on. (If that were the problem, I'm
not so sure that parentheses would have helped anyway, though a
backslash certainly would.)
Priscila, David is right: ']' by itself doesn't need to be escaped
(i.e., it is not special). I didn't even bother testing an unescaped
']' but it works just fine.
My first condition should have been using square brackets for special
characters:
* ^Subject:.*re: [$]$
* ^Subject:.*re: \$$
These escape a literal dollar sign, but neither of these are necessary
for ']'.
As a general rule, the above conditions are common ways to escape
special characters, but ']' without a '[' before it (per David) isn't
special.
Scott
--
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail