[Mimedefang] SpamAssassin regexp question

Jim McCullars jim at info.uah.edu
Thu Aug 7 13:30:17 EDT 2008



On Thu, 7 Aug 2008, Jan Pieter Cornet wrote:

> >> # This mail was sent by...
> >> rawbody UAH_SENTBY1 /^This email was sent by:$/
> >> score UAH_SENTBY1 1.0
> >> rawbody UAH_SENTBY2 /^Unsubscribe: http:.+\/accounts$/
> >> score UAH_SENTBY2 1.0
> >>
> >> When I ran command line spamassassin against a copy of the message, the
> >> tests did not hit.  When I changed it to this:
> >>
> >> # This mail was sent by...
> >> rawbody UAH_SENTBY1 /\nThis email was sent by:\n/
> >> score UAH_SENTBY1 1.0
> >> rawbody UAH_SENTBY2 /\nUnsubscribe: http:.+\/accounts\n/
> >> score UAH_SENTBY2 1.0
> >>
> >> they did.  What's the difference?  Thanks...
> >
> So far, you are correct. However, spamassassin presents the "body"
> rules with the message _per_paragraph_ (see Mail::SpamAssassin::Conf,
> search for "body SYMBOLIC_TEST_NAME). Line breaks and html tags
> are removed. "rawbody" tests are presented per line.

   That's what I thought, which is why I was using the rawbody tests, and
I could never figure out why the test didn't work.  Can you shed any light
on my specific case?  Thanks...

Jim McCullars
University of Alabama in Huntsville




More information about the MIMEDefang mailing list