From 41aa4756879765d0c6d4d6e8754e0037b1a56fcc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 Jun 2016 00:14:26 +0000 Subject: mda: precheck no longer depends on Email::Filter Email::Filter doesn't offer any functionality we need, here; and our dependency on Email::Filter will gradually be removed since it (and Email::LocalDelivery) seem abandoned and we can have more-fine-grained control by rolling our own Maildir delivery which can work transactionally. --- script/public-inbox-mda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/public-inbox-mda') diff --git a/script/public-inbox-mda b/script/public-inbox-mda index 84219ac3..ff2835da 100755 --- a/script/public-inbox-mda +++ b/script/public-inbox-mda @@ -34,7 +34,7 @@ defined $dst or exit(1); my $main_repo = $dst->{mainrepo} or exit(1); my $filtered; # string dest -if (PublicInbox::MDA->precheck($filter, $dst->{address}) && +if (PublicInbox::MDA->precheck($filter->simple, $dst->{address}) && do_spamc($filter->simple, \$filtered)) { # update our message with SA headers (in case our filter rejects it) my $msg = Email::MIME->new(\$filtered); -- cgit v1.2.3-24-ge0c7