From 3c027214d33c98faf3ef620f2d595becee731959 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Nov 2017 19:21:06 +0000 Subject: 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. --- script/public-inbox-learn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/public-inbox-learn') 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; }); } -- cgit v1.2.3-24-ge0c7