SA 2.6x run by itself out of .procmailrc or spamc/spamd seems to add an autolearn=X flag to tell you what happened to the message as it interacted with the autolearn system. But I run SA+MD on a relay, and I don't get these flags when calling spam_assassin_check() from mimedefang-filter's filter_end() function. Here's my code snippet:

my ($hits, $req, $names, $report) = spam_assassin_check();
if ($hits >= 10) {
return action_bounce("SPAM: hits=$hits, req=10.0, tests=$names");
}
if ($hits >= $req) {
action_add_header("X-Spam-Status","Yes, hits=$hits, req=$req, tests=$names");
} else {
action_add_header("X-Spam-Status","No, hits=$hits, req=$req, tests=$names");
}
if ($hits >= 1 ) {
my spamgraph = '*' x ($hits > 50 ? 50 : $hits);
action_add_header("X-Spam-Level","$spamgraph ($hits)");
}


I'm using MIMEDefang 2.38. Is there any way to get access to the autolearn= flags to stuff in there somewhere? Do I need an upgrade to MIMEDefang to get a newer spam_assassin_check() that returns this information?

---
"The avalanche has already begun. It is too late for the pebbles to vote."
-- Kosh


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to