about summary refs log tree commit homepage
path: root/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-07-14 21:01:18 +0000
committerEric Wong <e@80x24.org>2015-07-14 21:01:18 +0000
commitf66473b1a41606d8b4cda74c551aa85d12ec37ef (patch)
treed18c2dfa87b74ba9e81a7e108c4af6bcc61448b5 /public-inbox-mda
parent49338dea67712c0106c09d871fca7d680c32298f (diff)
downloadpublic-inbox-f66473b1a41606d8b4cda74c551aa85d12ec37ef.tar.gz
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.
Diffstat (limited to 'public-inbox-mda')
-rwxr-xr-xpublic-inbox-mda2
1 files changed, 1 insertions, 1 deletions
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);