From: Eric Wong Date: Thu, 16 Nov 2017 19:23:49 +0000 (+0000) Subject: watch: use "spam" in commit message for removals X-Git-Tag: v1.0.0~18 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=44788dcad1863988c4535dd94ddd751bf9164cd2 watch: use "spam" in commit message for removals This makes it easy to identify the reason for message removals. --- diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index 5ae3d21f..424186bd 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -132,11 +132,11 @@ sub _remove_spam { my ($ibx) = @_; eval { my $im = _importer_for($self, $ibx); - $im->remove($mime); + $im->remove($mime, 'spam'); if (my $scrub = _scrubber_for($ibx)) { my $scrubbed = $scrub->scrub($mime) or return; $scrubbed == 100 and return; - $im->remove($scrubbed); + $im->remove($scrubbed, 'spam'); } }; if ($@) {