mailscanner/spamassassin strangeness

Piper Andreas pipera at HRZ.UNI-MARBURG.DE
Wed Jan 30 13:46:23 GMT 2002


Hello,

after some comparing of stand-alone spamassassin to mailscanner+spamassassin
and digging into spamassassin- and mailscanner-code I found that the
email-data within mailscanner are handed over to spamassassin with their
line-endings cut off, which gives a different input to spamassassin as with
using stdin.

Changing this in sendmail.pl puts away with the spam-hit-differences, at
least for my host. I don't know if this is a perl-issue, since I am running 5.005;
maybe in 5.6 the data are handled in a different way?

The changes in sendmail.pl are these:

*** sendmail.pl Wed Jan 30 14:36:26 2002
--- sendmail.pl.orig Mon Jan 28 13:46:10 2002
***************
*** 230,240 ****
    return 0 unless $H;
    foreach $_ (@$H) {
! #    chomp;
      push(@WholeMessage, $_);
    }
!   push(@WholeMessage, "\n");
    open(DF, $dfilename) or return 0;
    while(<DF>) {
! #    chomp;
      push(@WholeMessage, $_);
    }
--- 230,240 ----
    return 0 unless $H;
    foreach $_ (@$H) {
!     chomp;
      push(@WholeMessage, $_);
    }
!   push(@WholeMessage, "");
    open(DF, $dfilename) or return 0;
    while(<DF>) {
!     chomp;
      push(@WholeMessage, $_);
    }

Andreas

________________________________________________________________________
Dr. Andreas Piper, Hochschulrechenzentrum der Philipps-Univ. Marburg
          Hans-Meerwein-Strasse, 35032 Marburg, Germany
Phone: +49 6421 28-23521  Fax: -26994  Email: piper at HRZ.Uni-Marburg.DE



More information about the MailScanner mailing list