From 7174681c0165008ac16ed1d323f6d95b6d0570a3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Nov 2017 18:48:39 +0000 Subject: learn: use "spam" as subject for removal commits Sometimes an email is an innocent removal "rm" for a misdirected, off-topic post, while most removed messages are "spam". Allow anybody to look at history and easily distinguish the reason for removing the message. --- 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 71aa50f9..75294a0a 100755 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -81,7 +81,7 @@ foreach my $recipient (keys %dests) { # may train for each cross-posted message, and this # script already learns for every list in # ~/.public-inbox/config - $im->remove($mime); + $im->remove($mime, $train); } else { # $train eq "ham" # no checking for spam here, we assume the message has # been reviewed by a human at this point: -- cgit v1.2.3-24-ge0c7