Herman Damveld <H(_dot_)J(_dot_)Damveld(_at_)LR(_dot_)TUDelft(_dot_)NL> writes:
I'm trying to write this filter of mine which should filter all mail
carrying the string '[text]' (without '' but [] included!) in the subject.
I already tried (among other things):
* ^Subject:.*[dmca]
but the [] are always treated like part of a regular expression.
To quote the procmailrc(5) manpage:
\. Matches a single dot; use \ to quote any of the
magic characters to get rid of their special mean-
ing. See also $\ variable substitution.
* ^Subject:.*\[dmca\]
Actually, the close bracket isn't magic unless there's a open bracket
preceeding it, so the following will also work, though it looks kinda
strange:
* ^Subject:.*\[dmca]
You can also demagicify an open bracket by enclosing it in brackets:
* ^Subject:.*[[]dmca]
But I find that hard to read, and thus I personally recommend the first.
Philip Guenther