----- Original Message -----
Sent: Thursday, March 04, 2004 8:01
PM
Subject: Is this a "bug" ?
Hi,
Sorry if this is not the right place, but there
is something I don't quite understand.
1) Inside PerMsgStatus, there is the following
code :
# and do full tests: first
with entire, full, undecoded message
# still skip
application/image attachments though
{
my $fulltext = join ('',
$self->{msg}->get_all_headers(),
"\n",
@{$self->get_raw_body_text_array()});
$self->do_full_tests(\$fulltext);
$self->do_full_eval_tests(\$fulltext);
undef $fulltext;
}
2) It seems to be coherent with the following
excerpt from the get_raw_body_text_array sub :
if (!$ctypeistext)
{
# skip this attachment, it's non-text.
push
(@{$self->{body_text_array}}, "[skipped $ctype
attachment]\n");
3) An actual debug/dump gives :
[skipped image/gif attachment]
4) What I don't understand is that this is not
coherent at all with the following doc excerpt :
The 'full
body' of a message is the un-decoded
text,
including all parts (including images or other
attach
ments). SpamAssassin no longer tests full
tests
against
decoded text; use "rawbody" for that.
This might explain why I have troubles matching
these stupid sex raising pills ads that only contain a gif. Unless I'm
completely mistaken.
Thanks a lot in advance for your answer, and
thanks for this wonderfull software :-)