]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Filter/Base.pm
filter/rubylang: do not set altid on spam training
[public-inbox.git] / lib / PublicInbox / Filter / Base.pm
index b2bb14620667f5ae65ef6ee5d3c527271795b3a4..638b627af5d4370221a07b1c167a5883f62d235d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2018 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # base class for creating per-list or per-project filters
@@ -66,9 +66,10 @@ sub reject ($$) {
 sub err ($) { $_[0]->{err} }
 
 # by default, scrub is a no-op, see PublicInbox::Filter::Vger::scrub
-# for an example of the override
+# for an example of the override.  The $for_remove arg is set to
+# disable altid setting for spam removal.
 sub scrub {
-       my ($self, $mime) = @_;
+       my ($self, $mime, $for_remove) = @_;
        $self->ACCEPT($mime);
 }