diff options
author | Eric Wong <e@80x24.org> | 2019-10-28 10:45:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-10-30 08:48:18 +0000 |
commit | 1d9317540bc3fea86dcd512bb54275324ed1b0fa (patch) | |
tree | a0bd8e31149e18f18aa591ccfeb74a1524fd6861 | |
parent | 420fddb8b683637cc1fd39727896cac4a459c3b6 (diff) | |
download | public-inbox-1d9317540bc3fea86dcd512bb54275324ed1b0fa.tar.gz |
We don't want to waste cycles parsing the message for MIME bits if it's spam.
-rwxr-xr-x | script/public-inbox-mda | 2 |
1 files changed, 1 insertions, 1 deletions
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 ($) { |