diff options
author | Eric Wong <e@80x24.org> | 2014-01-10 23:50:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-01-10 23:50:16 +0000 |
commit | bf4630c098ad7159ba36dea6cfe77c4cf6806ffe (patch) | |
tree | fe3cedc95cc5376a4eeab337da1b9aa93ae76759 /public-inbox-mda | |
parent | ef262d1b0139fbb56b7089a3c921087651ffa46a (diff) | |
download | public-inbox-bf4630c098ad7159ba36dea6cfe77c4cf6806ffe.tar.gz |
SpamAssassin doesn't seem to have this heuristic, but the lack of the intended email address in To:/Cc: headers cannot be a good sign (especially when this is a _public_ inbox).
Diffstat (limited to 'public-inbox-mda')
-rwxr-xr-x | public-inbox-mda | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public-inbox-mda b/public-inbox-mda index 177c891e..72f1eac4 100755 --- a/public-inbox-mda +++ b/public-inbox-mda @@ -4,6 +4,7 @@ use strict; use warnings; use Email::Filter; +use Email::Address; use PublicInbox::Filter; use IPC::Run qw(run); my $usage = "public-inbox-mda main_repo fail_repo < rfc2822_message"; @@ -14,6 +15,7 @@ my $max = 1024 * 500; # same as spamc my $filtered; if (length($filter->simple->as_string) <= $max + && PublicInbox->recipient_specified($filter) && do_spamc($filter->simple, \$filtered)) { # update our message with SA headers (in case our filter rejects it) my $simple = Email::Simple->new($filtered); |