From: Eric Wong Date: Thu, 16 Nov 2017 19:21:06 +0000 (+0000) Subject: learn: use "spam" as subject for removal commits (part #2) X-Git-Tag: v1.0.0~19 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=3c027214d33c98faf3ef620f2d595becee731959 learn: use "spam" as subject for removal commits (part #2) 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. --- diff --git a/script/public-inbox-learn b/script/public-inbox-learn index 75294a0a..5041d82b 100755 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -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; }); }