/[Apache-SVN]/spamassassin/trunk/lib/Mail/SpamAssassin.pm
ViewVC logotype

Diff of /spamassassin/trunk/lib/Mail/SpamAssassin.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/lib/Mail/SpamAssassin.pm	2005/08/14 02:09:09	232568
+++ spamassassin/trunk/lib/Mail/SpamAssassin.pm	2005/08/14 02:14:49	232569
@@ -1124,6 +1124,11 @@ by a configuration option.  By default,
 sub compile_now {
   my ($self, $use_user_prefs, $deal_with_userstate) = @_;
 
+  # tell plugins we are here
+  $self->call_plugins("compile_now_start",
+		      { use_user_prefs => $use_user_prefs,
+			keep_userstate => $deal_with_userstate});
+
   # note: this may incur network access. Good.  We want to make sure
   # as much as possible is preloaded!
   my @testmsg = ("From: ignore\@compiling.spamassassin.taint.org\n", 
@@ -1180,7 +1185,11 @@ sub compile_now {
     }
   }
 
+  # make sure things are ready for scanning
   $self->{bayes_scanner}->sanity_check_is_untied();
+  $self->call_plugins("compile_now_finish",
+		      { use_user_prefs => $use_user_prefs,
+			keep_userstate => $deal_with_userstate});
 
   # Reset any non-default values to the post-init() version.
   while(my($k,$v) = each %backup) {

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26