Basically, as of QS 1.15 (I think) Jason decided he wasn't going to
trust the return value from spamassassin, as there have been a number
of versions that don't work properly, so QS checks the values and marks
the mail as spam itself.
Unfortunately the test that is used is  score >= threshold, which is true
if they are both zero, which is the default case, as they both get set to
zero if there are any problems, or if the scanning is skipped because the
file is too big.

I have attached the patch that I use that specifically checks for score
and threshold = 0. This should only cause a problem if you have set your
threshold to 0.
The relevant line is below.
-      if ($sa_max > $sa_score) {
+      if (($sa_max > $sa_score) || ($sa_max == 0 && $sa_score == 0)) {

Hope this helps.
Chris Hine

> Found that out too with SA 2.20 which is shipped with Debian woody. It
> seems to be caused by too large mails, which aren't scanned 
> by SA so it
> gets 0/0 as score.
> I haven't found out what to do about this, but in my mail program
> (Ximian Evolution 1.20) I filter on:
> 
> Header X-Spam-Status contains "Yes" AND
> Header X-Spam-Status does not contain required=0
> 
> This solves my problem, but I also would like a fix in QS for this ;)
> 
> Op di 17-12-2002, om 15:07 schreef [EMAIL PROTECTED]:
> > I have a new server up with qmail-scanner, spamassassin 
> 2.4.3 (spamd for
> > system-wide use) and maildrop.  It works fine most of the 
> time, but when
> > certain attachments arrive (NOT ones listed in 
> quarantine.txt), the email
> > is rejected as spam because the threshold and hits are 
> reset to 0 like
> > this:
> > 
> > X-Spam-Status: Yes, hits=0 required=0
> > 
> > Instead of:
> > 
> > X-Spam-Status: No, hits=1.2 required=6.6
> > 
> > I didn't find a solution on the SA list (there was a bug in 
> older versions
> > of SA, but supposedly not in this one), so this might be a 
> qmail-scanner
> > specific problem.
> > 
> > Any clues?
> > 
> > TIA!
> > 
> > James Smallacombe                 PlantageNet, Inc. CEO and Janitor
> > [EMAIL PROTECTED]                                                     
    http://3.am
> =========================================================================
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility 
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> Qmail-scanner-general mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Attachment: sub-spamassassin.pl.patch
Description: Binary data

Reply via email to