3/28 Procmail regex question. I have the following recipe:
:0:
* ^Subject: .*\[GB2312\]
/dev/null
For some reason, it does not catch messages. Does slash not properly
escape []'s in procmail? Anyone have a fix for this? Thanks.
\_ That rule works fine for me. Perhaps your messages are getting
matched by an earlier rule? You can try setting LOGFILE=filename
at the beginning of your .procmailrc to have procmail log its
actions.
\_ what do you have against Chinese?
\_ Read the man pages for syntax.
\_ Yes, I read the man page for syntax already. I wouldn't be
asking here if I hadn't already RTFMed and STFWed. -op
\_ Check that. Read the man page (again). Slash should escape
special regex chars, including []'s. What's your excuse now
manboy? -op
\_ Excuse? I don't need one. My procmail recipes work perfectly
whereas yours clearly don't. It's the motd. No one here owes
you anything.
\_ Go away troll.
\_ Someone decided to delete this:
can't you just remove the \[ and the \] ???
\_ getting rid of the space after Subject: might help as well.
\_ There is always a space after Subject:, so removing it
won't hurt or help at all.
\_ Wouldn't that put all email in /dev/null?
\_ No. I'm still receiving email. -op
\_ Yes, I could remove the \[ and the \], except that I have other
rules in similar form with more common words than GB2312, and
I'd really like things to have to match the brackets. -op |