]> Sergey Matveev's repositories - public-inbox.git/commitdiff
learn: use "spam" as subject for removal commits (part #2)
authorEric Wong <e@80x24.org>
Thu, 16 Nov 2017 19:21:06 +0000 (19:21 +0000)
committerEric Wong <e@80x24.org>
Thu, 16 Nov 2017 19:22:17 +0000 (19:22 +0000)
We need to use the correct subject when doing global scanning,
too.  In fact, the per-recipient spam training path is entirely
redundant at this point.

script/public-inbox-learn

index 75294a0a8e44e9368fc0b98d7db38d1d8a71152b..5041d82bd80ce4fcb33d4a501adb7cbe3c1e9080 100755 (executable)
@@ -58,7 +58,7 @@ if ($train eq 'spam') {
                my $name = $ibx->{name};
                my $addr = $ibx->{-primary_address};
                my $im = PublicInbox::Import->new($git, $name, $addr, $ibx);
-               $im->remove($mime);
+               $im->remove($mime, 'spam');
                $im->done;
        });
 }