diff options
author | Eric Wong <e@80x24.org> | 2014-04-28 10:25:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-28 10:25:58 +0000 |
commit | e7875ff77b4cd09831574cc4965e3f7012b81b89 (patch) | |
tree | 1256922c2aefcc74642b741992b9bc16c78be515 /public-inbox-mda | |
parent | ac958d1d52ce32f3ad2c5af134fb229153b26062 (diff) | |
download | public-inbox-e7875ff77b4cd09831574cc4965e3f7012b81b89.tar.gz |
This mimics functionality found in -learn. Originally the design allowed for only one address per-list, but when migrating/hijacking existing mailing lists, having multiple addresses map to the same inbox is useful.
Diffstat (limited to 'public-inbox-mda')
-rwxr-xr-x | public-inbox-mda | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public-inbox-mda b/public-inbox-mda index 50805da2..096421bb 100755 --- a/public-inbox-mda +++ b/public-inbox-mda @@ -26,12 +26,12 @@ my $config = PublicInbox::Config->new; my $recipient = $ENV{ORIGINAL_RECIPIENT}; defined $recipient or die "ORIGINAL_RECIPIENT not defined in ENV\n"; -my $dst = $config->lookup($recipient); +my $dst = $config->lookup($recipient); # first check defined $dst or exit(1); my $main_repo = $dst->{mainrepo} or exit(1); my $filtered; # string dest -if (PublicInbox::MDA->precheck($filter, $recipient) && +if (PublicInbox::MDA->precheck($filter, $dst->{address}) && do_spamc($filter->simple, \$filtered)) { # update our message with SA headers (in case our filter rejects it) my $msg = Email::Simple->new($filtered); |