You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/10/08 13:57:53 UTC

svn commit: r1843145 - in /spamassassin/trunk: UPGRADE lib/Mail/SpamAssassin/Plugin.pm lib/Mail/SpamAssassin/Plugin/Check.pm

Author: hege
Date: Mon Oct  8 13:57:53 2018
New Revision: 1843145

URL: http://svn.apache.org/viewvc?rev=1843145&view=rev
Log:
New plugin callback method check_dnsbl

Modified:
    spamassassin/trunk/UPGRADE
    spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm
    spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm

Modified: spamassassin/trunk/UPGRADE
URL: http://svn.apache.org/viewvc/spamassassin/trunk/UPGRADE?rev=1843145&r1=1843144&r2=1843145&view=diff
==============================================================================
--- spamassassin/trunk/UPGRADE (original)
+++ spamassassin/trunk/UPGRADE Mon Oct  8 13:57:53 2018
@@ -16,6 +16,8 @@ Note for Users Upgrading to SpamAssassin
   that refer to check_rbl* or other network rules. They will never hit.
   (Bug 5930)
 
+- new plugin callback method check_dnsbl (to launch lookups at priority -100)
+
 - freemail_import_whitelist_auth, freemail_import_def_whitelist_auth added (Bug 6451)
 
 - body_part_scan_size 50000, rawbody_part_scan_size 500000 defaults added (Bug 6582)

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm?rev=1843145&r1=1843144&r2=1843145&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin.pm Mon Oct  8 13:57:53 2018
@@ -427,6 +427,20 @@ The C<Mail::SpamAssassin::PerMsgStatus>
 
 =back
 
+=item $plugin->check_dnsbl ( { options ... } )
+
+Called when DNSBL or other network lookups are being launched, implying
+current running priority of -100.  This is the place to start your own
+asynchronously-started network lookups.
+
+=over 4
+
+=item permsgstatus
+
+The C<Mail::SpamAssassin::PerMsgStatus> context object for this scan.
+
+=back
+
 =item $plugin->check_post_dnsbl ( { options ... } )
 
 Called after the DNSBL results have been harvested.  This is a good

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm?rev=1843145&r1=1843144&r2=1843145&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm Mon Oct  8 13:57:53 2018
@@ -120,6 +120,7 @@ sub check_main {
       $pms->{async}->{wait_launch} = 0; # permission granted
       $pms->{async}->launch_queue(); # check if something was queued
       $self->run_rbl_eval_tests($pms);
+      $self->{main}->call_plugins ("check_dnsbl", { permsgstatus => $pms });
     }
 
     my $timer = $self->{main}->time_method("tests_pri_".$priority);