You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Magnus Holmgren <ho...@lysator.liu.se> on 2006/08/01 17:22:35 UTC

Re: Subject header not detected after folded header

On Monday 31 July 2006 18:04, Ben Wylie took the opportunity to say:
> 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";
      }

-- 
Magnus Holmgren        holmgren@lysator.liu.se
                       (No Cc of list mail needed, thanks)