John D. Maag wrote: > OK, one last question. I am getting email with this header: > > From: "Connie Trivitt" <[EMAIL PROTECTED]> Add to Address Book > To: "John D Maag" <[EMAIL PROTECTED]> > Subject: 800 E Vermont #25101 has a 4.88% fixed rate option. > Date: Thu, 28 Jul 2005 11:50:27 -0400 > > I have added this rule to local.cf in /etc/mail/spamassassin: > > header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /800\bE\bVermont/i > score LOCAL_DEMONSTRATION_SUBJECT 2.6 > > But it does nto seem to be working. Can someone assist? >
Don't use \b as a space character, it's not good for that. \b is a zero-width assertion, that detects the change between word and non-word characters.. /0\bE/ will never match anything, as the regex is looking for a string two characters long, starting with 0, ending with E and having a word-boundary in the middle. The word boundary can never occur without the 0 or E changing into something else. Use \s or an actual space instead. Put \b's at the beginning and end of the regex, but in the middle only do it when you've got wildcards involved and want to force a boundary. (ie: /.\b./ or something of the sort) Try this: /\b800\s{1,3}E.?\s{1,3}Vermont\b/i