about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-11-16 19:23:49 +0000
committerEric Wong <e@80x24.org>2017-11-16 19:23:49 +0000
commit44788dcad1863988c4535dd94ddd751bf9164cd2 (patch)
tree8f4c79874090e1a08fb5c6fe634f132868b25101 /lib
parent3c027214d33c98faf3ef620f2d595becee731959 (diff)
downloadpublic-inbox-44788dcad1863988c4535dd94ddd751bf9164cd2.tar.gz
This makes it easy to identify the reason for message removals.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/WatchMaildir.pm4
1 files 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 ($@) {