From f66473b1a41606d8b4cda74c551aa85d12ec37ef Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Jul 2015 21:01:18 +0000 Subject: reject HTML loudly and automatically This should hopefully reduce the delay between when a user fails to send plain-text to when an admin such as myself notices the HTML mail in a sea of spam. Unfortunately, this can lead to backscatter, so avoid doing it until its passed through spamc, at least. --- public-inbox-mda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public-inbox-mda') diff --git a/public-inbox-mda b/public-inbox-mda index 047a4827..4348cb24 100755 --- a/public-inbox-mda +++ b/public-inbox-mda @@ -38,7 +38,7 @@ if (PublicInbox::MDA->precheck($filter, $dst->{address}) && $filtered = undef; $filter->simple($msg); - if (PublicInbox::Filter->run($msg)) { + if (PublicInbox::Filter->run($msg, $filter)) { # run spamc again on the HTML-free message if (do_spamc($msg, \$filtered)) { $msg = Email::MIME->new(\$filtered); -- cgit v1.2.3-24-ge0c7