public-inbox-mda | 8 ++++++++ diff --git a/public-inbox-mda b/public-inbox-mda index 522eeff7cd1bb2149aeeb3f161cb578a329a11cf..047a4827914184a824b1c1ad8c52d69381f88c59 100755 --- a/public-inbox-mda +++ b/public-inbox-mda @@ -56,6 +56,14 @@ $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