We don't want to waste cycles parsing the message for MIME bits
if it's spam.
---
script/public-inbox-mda | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index 71c5d937..69354616 100755
--- a/script/public-inbox-mda
+++ b/script/public-inbox-mda
@@ -71,9 +71,9 @@ if ($spamc) {
my $fh = $emm->fh;
read($fh, $str, -s $fh);
}
+do_exit(0) unless $spam_ok;
my $mime = PublicInbox::MIME->new(\$str);
-do_exit(0) unless $spam_ok;
# -mda defaults to the strict base filter which we won't use anywhere else
sub mda_filter_adjust ($) {
--
unsubscribe: [email protected]
archive: https://public-inbox.org/meta/