* [PATCH] watchmaildir: deal with rejected (100) messages
@ 2017-06-23 0:48 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2017-06-23 0:48 UTC (permalink / raw)
To: meta
The RubyLang filter is strict about what messages it rejects, so
the spam learning path will not auto-train or remove messages
missing X-Mail-Count headers.
---
lib/PublicInbox/WatchMaildir.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm
index 8588f16..c15e138 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);
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-06-23 0:48 7% [PATCH] watchmaildir: deal with rejected (100) messages Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).