From 44788dcad1863988c4535dd94ddd751bf9164cd2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Nov 2017 19:23:49 +0000 Subject: [PATCH] watch: use "spam" in commit message for removals This makes it easy to identify the reason for message removals. --- lib/PublicInbox/WatchMaildir.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ($@) { -- 2.44.0