* [PATCH] public-inbox-mda: preserve SpamAssassin headers in spam
@ 2015-06-05 17:46 Eric Wong
0 siblings, 0 replies; only message in thread
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 [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-05 17:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05 17:46 [PATCH] public-inbox-mda: preserve SpamAssassin headers in spam Eric Wong
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).