On Thu, 9 Oct 2003, Mike Carlson wrote: > Anyone have problems getting spamstats to return numbers for the spam counts? Tha > faq on gryzor's website is of little help.
[...] > Oct 9 13:17:41 altair spamd[31462]: identified spam (8.7/5.5) for root:1002 in 4.7 > seconds, 3405 bytes. > Oct 9 13:17:51 altair spamd[31476]: identified spam (21.8/5.5) for root:1002 in 4.2 > seconds, 3503 bytes. > Oct 9 13:18:04 altair spamd[31483]: identified spam (11.5/5.5) for root:1002 in 5.5 > seconds, 1035 bytes. > > but it still returns no numbers. Is there any special config I need to do to syslog > or something? i've got the same problem (sendmail syslog), and i had fixed some lines: i'm not that familiar with diff / patch, so here is the output of it: (its gnu diff) diff spamstats0.4b5.pl spamstats0.4b5.pl-fixed 686c686,687 < $clean_score = $clean_score + $2; --- > # print $basic_clean_nb." clean \n"; > $clean_score = $clean_score + $2; 710c711,712 < $spam_score = $spam_score + $2; --- > #print $basic_spam_nb."spam \n"; > $spam_score = $spam_score + $2; 732a735 > print $nb_spam."\n"; 736a740,741 > print $nb_clean."\n"; > 747c752 < if ($nb_spam+$nb_clean > 0) --- > if ($nb_spam+$nb_clean == 0) 749,750c754,755 < $spam_percent = eval(100 * $nb_spam / ($nb_spam+$nb_clean)); < printf("%-40s:%10d (%6.2f%%)\n", "Number of spams", $nb_spam, $spam_percent); --- > $spam_percent = eval(100 * $basic_spam_nb / ($basic_spam_nb+$basic_clean_nb)); > printf("%-40s:%10d (%6.2f%%)\n", "Number of spams", $basic_spam_nb, $spam_percent); 758c763 < if ($nb_spam+$nb_clean > 0) --- > if ($nb_spam+$nb_clean == 0) 760,761c765,766 < $clean_percent = eval(100 * $nb_clean / ($nb_spam+$nb_clean)); < printf("%-40s:%10d (%6.2f%%)\n", "Number of clean messages", $nb_clean, $clean_percent); --- > $clean_percent = eval(100 * $basic_clean_nb / ($basic_spam_nb+$basic_clean_nb)); > printf("%-40s:%10d (%6.2f%%)\n", "Number of clean messages", $basic_clean_nb, $clean_percent); regards, Matthias ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk