]> 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 5d070132a4101c78408018283eb8734247806974..638b627af5d4370221a07b1c167a5883f62d235d 100644 (file)
@@ -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);
 }