On Thu, 27 Feb 2014, Kevin A. McGrail wrote:

I just got bit by a rule that fired (KAM_HOODIA) because body appear to include the subject of the email when testing the body. (http://wiki.apache.org/spamassassin/WritingRules Body rules also include the Subject as the first line of the body content.)

So if I want to meta test the header and the body, I can't without using rawbody.

Does anyone know why this was added?

At best, I think this is added in Message.pm with my $text = $self->get_header ('subject') || "\n";

That's been in SA for a *long* time.

Perhaps we need to add a tflag to not add subject for body rules to ignore this step.

That would pretty much require two $texts, wouldn't it? body rules without that tflag would expect to run against the header as well...

To "properly" implement that tflag, in addition to not doing the concatenation wouldn't all body rules not having the tflag also have to be explicitly run against the Subject header so they maintain the current semantics?

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [email protected]    FALaholic #11174     pgpk -a [email protected]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Our government wants to do everything it can "for the children,"
  except sparing them crushing tax burdens.
-----------------------------------------------------------------------
 14 days until Albert Einstein's 135th Birthday

Reply via email to