about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/WatchMaildir.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm
index 8588f16c..c15e1384 100644
--- a/lib/PublicInbox/WatchMaildir.pm
+++ b/lib/PublicInbox/WatchMaildir.pm
@@ -108,6 +108,7 @@ sub _remove_spam {
                         $im->remove($mime);
                         if (my $scrub = _scrubber_for($ibx)) {
                                 my $scrubbed = $scrub->scrub($mime) or return;
+                                $scrubbed == 100 and return;
                                 $im->remove($scrubbed);
                         }
                 };
@@ -169,7 +170,9 @@ sub _try_path {
                 return unless ($v && $v =~ $wm->[1]);
         }
         if (my $scrub = _scrubber_for($inbox)) {
-                $mime = $scrub->scrub($mime) or return;
+                my $ret = $scrub->scrub($mime) or return;
+                $ret == 100 and return;
+                $mime = $ret;
         }
 
         _force_mid($mime);