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] public-inbox-mda: preserve SpamAssassin headers in spam
@ 2015-06-05 17:46  7% Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-06-05 17:46 UTC (permalink / raw)
  To: meta

We want to be able to prioritize spam downstream to check for
borderline cases.
---
 public-inbox-mda | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/public-inbox-mda b/public-inbox-mda
index 522eeff..047a482 100755
--- a/public-inbox-mda
+++ b/public-inbox-mda
@@ -56,6 +56,14 @@ if (PublicInbox::MDA->precheck($filter, $dst->{address}) &&
 			$filter->pipe(PublicInbox::MDA->cmd, $main_repo);
 		}
 	}
+} else {
+	# Ensure emergency spam gets spamassassin headers.
+	# This makes it easier to prioritize obvious spam from less obvious
+	if (defined($filtered) && length($filtered)) {
+		my $drop = Email::MIME->new(\$filtered);
+		$filtered = undef;
+		$filter->simple($drop);
+	}
 }
 exit 0; # goes to emergency
 
-- 
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 --
2015-06-05 17:46  7% [PATCH] public-inbox-mda: preserve SpamAssassin headers in spam 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).