Am running SpamAssassin 3.1.2 on Windows 2003 server.
This is an extract from the headers of an incoming email.
This triggered the "MISSING_SUBJECT Missing Subject: header" rule.
Why did this not detect the subject header?
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C6B494.1CB001D7"
Subject:
Date: Mon, 31 Jul 2006 12:26:05 +0100
exists:Header is equivalent to Header =~ /./, i.e. the header contains at
least one character. Here is the code from Mail::SpamAssassin::Conf:
elsif ($value =~ /^(\S+)\s+exists:(.*)$/) {
$self->{parser}->add_test ($1, "$2 =~ /./", $TYPE_HEAD_TESTS);
$self->{descriptions}->{$1} = "Found a $2 header";
}
So I was wrong. The rule checks that there is some content in the
header, rather than for the header itself.
I had misunderstood this.
Thanks
Ben