From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 84731202D7 for ; Thu, 16 Nov 2017 20:45:08 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] watch: use "spam" in commit message for removals Date: Thu, 16 Nov 2017 20:45:08 +0000 Message-Id: <20171116204508.19516-2-e@80x24.org> In-Reply-To: <20171116204508.19516-1-e@80x24.org> References: <20171116191407.29417-1-e@80x24.org> <20171116204508.19516-1-e@80x24.org> List-Id: 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 5ae3d21..424186b 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 ($@) { -- EW