rem(_at_)one-o(_dot_)com (Robert E. Maas) writes:
...
One of the recipes in rc.shun1 looks like this:
:0:
* ^Received:.*199\.0\.233\.3[\]\)]
IN.shunA-199.0.233.3-SPRINT
and I would expect when e-mail arrives with the following header field:
Received: from gate2.sprintlink.net (gate2.sprintlink.net [199.0.233.3]) by on
e-o.com (SMI-8.6/SMI-SVR4-OOI951120)
id WAA04510; Mon, 26 May 1997 22:41:58 -0700
that particular recipe would be triggered and the message deposited in
that file. But it doesn't work, instead the message gets all the way to
a later recipe in rc.shun2:
...
Backslashes aren't special inside a character class (i.e., brackets).
The regexp you show above will therefore be parsed to end with a character
class containing just a backslash, then a literal paren and a literal close
bracket (close brackets are only special inside character classes). In
order to include a close bracket inside a character class, you just put it
first in the class, like this:
:0:
* ^Received:.*199\.0\.233\.3[])]
IN.shunA-199.0.233.3-SPRINT
Philip Guenther