You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2004/09/09 05:43:30 UTC
svn commit: rev 43565 - spamassassin/trunk/lib/Mail/SpamAssassin
Author: jm
Date: Wed Sep 8 20:43:28 2004
New Revision: 43565
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm
Log:
bug 3762: add a new plugin API: check_post_learn(). also fix a C<...->...> POD bug
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm Wed Sep 8 20:43:28 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
@@ -2396,7 +2397,7 @@
=item $status->clear_test_state()
-Clear test state, including test log messages from C<$status->test_log()>.
+Clear test state, including test log messages from C<$status-E<gt>test_log()>.
=cut
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm Wed Sep 8 20:43:28 2004
@@ -287,6 +287,20 @@
=back
+=item $plugin->check_post_learn ( { options ... } )
+
+Called after auto-learning may (or may not) have taken place. If you
+wish to perform additional learning, whether or not auto-learning
+happens, this is the place to do it.
+
+=over 4
+
+=item permsgstatus
+
+The C<Mail::SpamAssassin::PerMsgStatus> context object for this scan.
+
+=back
+
=item $plugin->check_end ( { options ... } )
Signals that a message check operation has just finished, and the