about summary refs log tree commit homepage
path: root/script/public-inbox-learn
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-11-16 19:21:06 +0000
committerEric Wong <e@80x24.org>2017-11-16 19:22:17 +0000
commit3c027214d33c98faf3ef620f2d595becee731959 (patch)
treea48d5cad788315e8c4e676203a4bbaf3bf077187 /script/public-inbox-learn
parent7174681c0165008ac16ed1d323f6d95b6d0570a3 (diff)
downloadpublic-inbox-3c027214d33c98faf3ef620f2d595becee731959.tar.gz
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.
Diffstat (limited to 'script/public-inbox-learn')
-rwxr-xr-xscript/public-inbox-learn2
1 files changed, 1 insertions, 1 deletions
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;
         });
 }