You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/09/09 00:41:51 UTC
[Bug 3762] New: Plugins should be able to be called after learn
http://bugzilla.spamassassin.org/show_bug.cgi?id=3762
Summary: Plugins should be able to be called after learn
Product: Spamassassin
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P5
Component: Plugins
AssignedTo: dev@spamassassin.apache.org
ReportedBy: cblaise@esoft.com
If someone were building a hypothetical plugin to allow messages to be
registered in Bayes regardless of the auto-learn results, there's no good
place to do this. You would want to do this after the $self->learn routine in
PerMsgStatus, but the only registerable function beyond that is "check_end" at
which point everything seems to be torn down (ie.,temp file has been deleted).
I propose a new registerable function named "check_post_learn" and here's my
diff:
--- lib/Mail/SpamAssassin/PerMsgStatus.pm.orig Fri Sep 3 22:19:25 2004
+++ lib/Mail/SpamAssassin/PerMsgStatus.pm Wed Sep 8 13:56:34 2004
@@ -228,6 +228,7 @@
# auto-learning
$self->learn();
+ $self->{main}->call_plugins ("check_post_learn", { permsgstatus =>
$self });
}
# delete temporary storage and memory allocation used during checking
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.