projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7174681
)
learn: use "spam" as subject for removal commits (part #2)
author
Eric Wong <e@80x24.org>
Thu, 16 Nov 2017 19:21:06 +0000 (19:21 +0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/script/public-inbox-learn
b/script/public-inbox-learn
index 75294a0a8e44e9368fc0b98d7db38d1d8a71152b..5041d82bd80ce4fcb33d4a501adb7cbe3c1e9080 100755
(executable)
--- 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;
});
}