]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-mda
mda: skip MIME parsing if spam
[public-inbox.git] / script / public-inbox-mda
index 71c5d93714de0b77802b4f00cba8410f7c33e01f..6935461662e6e900adddfa569d427272df097a24 100755 (executable)
@@ -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 ($) {