diff options
Diffstat (limited to 'script/public-inbox-mda')
-rwxr-xr-x | script/public-inbox-mda | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/script/public-inbox-mda b/script/public-inbox-mda index 584218b5..3ff318c9 100755 --- a/script/public-inbox-mda +++ b/script/public-inbox-mda @@ -43,10 +43,7 @@ if (defined $recipient) { $dst = $config->lookup($recipient); # first check } if (!defined $dst) { - my $list_id = $simple->header('List-Id'); - if (defined $list_id && $list_id =~ /<[ \t]*(.+)?[ \t]*>/) { - $dst = $config->lookup_list_id($1); - } + $dst = PublicInbox::MDA->inbox_for_list_id($config, $simple); if (!defined $dst && !defined $recipient) { die "ORIGINAL_RECIPIENT not defined in ENV\n"; } |