<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>I think it is a perfectly legitimate question and not orthogonal. MailScanner calls SA, SA returns information and MailScanner reports it.</DIV>
<DIV> </DIV>
<DIV>The reason why I asked it is that the only messages without all the information in the spamreport are the ones with isspam=1, isrblspam=1, issaspam=0 & ishighspam=0. ALL other messages including clean messages generate a full report. According to Jules, last message is that you have to turn on</DIV>
<DIV> </DIV>
<DIV>Always Include SpamAssassin Report = yes </DIV>
<DIV> </DIV>
<DIV>to get a report. And he wrote:</DIV>
<DIV> </DIV>
<DIV>>Absolutely correct. You don't want the inefficiency of always generating <BR>>the report, which involves always running SA, so don't be surprised when <BR>>you don't get the report.</DIV>
<DIV> </DIV>
<DIV>My problem with this is that I get a report on clean messages so the logic of not getting report is SA doesn't think it is spam is not correct.</DIV>
<DIV> </DIV>
<DIV>Here is the report on a clean message:</DIV>
<DIV> </DIV>
<DIV><TR><TD class=heading align="right" width="175" valign="top">SpamAssassin Score:</TD><TD class=detail>-0.50</TD></TR> <TR><TD class=heading align="right" width="175" valign="top">Spam Report:</TD><TD class=detail>
<TABLE class=sa_rules_report cellSpacing=2 cellPadding=1 width="100%" border=0>
<THEAD>
<TR>
<TH>Score</TH>
<TH>Matching Rule</TH>
<TH>Description</TH></TR></THEAD>
<TBODY>
<TR>
<TD align=left>-0.50</TD>
<TD width=200>BAYES_00</TD>
<TD>Bayesian spam probability is 0 to 1%</TD></TR>
<TR>
<TD align=left>-0.00</TD>
<TD width=200>SPF_PASS</TD>
<TD>SPF: sender matches SPF record</TD></TR></TBODY></TABLE></TD></TR></DIV>
<DIV><BR>On a message that meets the criteria in the first sentence, I get this:</DIV>
<DIV> </DIV>
<DIV><TD class=heading align="right" width="175" valign="top"><TR><TD class=heading align="right" width="175" valign="top">SpamAssassin Score:</TD><TD class=detail>-0.49</TD></TR> </DIV>
<DIV><TR><TD class=heading align="right" width="175" valign="top">Spam Report:</TD><TD class=detail>spam, SORBS-RECENT</DIV>
<DIV></TD></TR></DIV>
<DIV>If I go to the quarantine directory and run spamassassin:</DIV>
<DIV> </DIV>
<DIV>mscan:/var/spool/MailScanner/quarantine # spamassassin < 20090703/spam/n63D7E9n010959</DIV>
<DIV> </DIV>
<DIV>I get the following back:</DIV>
<DIV> </DIV>
<DIV>X-Spam-DCC: INFN-TO: mscan 1233; Body=2 Fuz1=3 Fuz2=3<BR>X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mscan.asdmonline.net<BR>X-Spam-Level:<BR>X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,HTML_MESSAGE<BR> shortcircuit=no autolearn=unavailable version=3.2.5</DIV>
<DIV> </DIV>
<DIV>Now for some reason, SpamAssassin is returning BAYES_00, HTML_MESSAGE when I run it manually but MailScanner doesn't include them in the spamreport.</DIV>
<DIV> </DIV>
<DIV>How can that be?</DIV></TD>
<DIV><BR>Gary</DIV>
<DIV><BR>>>> Glenn Steen <glenn.steen@gmail.com> 7/3/2009 10:18 AM >>><BR>2009/7/3 Gary Faith <gafaith@asdm.net>:<BR>> Was really hoping to get an answer to the question below!<BR>><BR>>>>> "Gary Faith" <gafaith@asdm.net> 6/29/2009 9:25 AM >>><BR>> When Spamassassin returns it's scores, where are you pulling the data from?<BR>> Is it in the header from X-Spam-Status: returned from Spamassassin<BR>><BR>> X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00<BR>> shortcircuit=no autolearn=unavailable version=3.2.5<BR>> or in the body somewhere?<BR>> Gary<BR>SpamAssassin is called as a perlmodule directly from within<BR>MailScanner itself, so there never is a need to parse any header lines<BR>or somesuch. If you need more detail, either wait for Jules to expand<BR>on it, or read the code;-).<BR>Why is it important to you? IIRC the thread mainly circled around why<BR>there were a dirth of reports when thing other than SA reported it as<BR>spam ... and a bit on how to get MS to always include the SA report.<BR>So to me, this question is pretty orthogonal;-)<BR>(snip)<BR><BR>Cheers<BR>-- <BR>-- Glenn<BR>email: glenn < dot > steen < at > gmail < dot > com<BR>work: glenn < dot > steen < at > ap1 < dot > se<BR>--<BR>MailScanner mailing list<BR>mailscanner@lists.mailscanner.info<BR><A href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</A><BR><BR>Before posting, read <A href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</A><BR><BR>Support MailScanner development - buy the book off the website!<BR></DIV></BODY></HTML>