user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/2] watch: use "spam" in commit message for removals
  @ 2017-11-16 20:45  7%   ` Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2017-11-16 20:45 UTC (permalink / raw)
  To: meta

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


^ 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-11-16 19:14     [PATCH] learn: use "spam" as subject for removal commits Eric Wong
2017-11-16 20:45     ` [PATCH 1/2] learn: use "spam" as subject for removal commits (part #2) Eric Wong
2017-11-16 20:45  7%   ` [PATCH 2/2] watch: use "spam" in commit message for removals 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).