about summary refs log tree commit homepage
path: root/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-20 23:27:46 +0000
committerEric Wong <e@80x24.org>2014-04-20 23:27:46 +0000
commit1c910ebd5d088b68fd1cec41285ad62641673845 (patch)
tree83bf0ec7dbd5488cb4138ac7c9b619fbb60cd5ba /public-inbox-mda
parent66a26a8c44100fe4be59d82f3600a5c14495d49d (diff)
downloadpublic-inbox-1c910ebd5d088b68fd1cec41285ad62641673845.tar.gz
It should be common for a single users to be subscribed to multiple
addresses/lists, so we must use the address before alias expansion.

This partially reverts commit b949afc9edf89dd494cac6255c78b124d58e11a5
Diffstat (limited to 'public-inbox-mda')
-rwxr-xr-xpublic-inbox-mda4
1 files changed, 2 insertions, 2 deletions
diff --git a/public-inbox-mda b/public-inbox-mda
index 504fefd7..6c446749 100755
--- a/public-inbox-mda
+++ b/public-inbox-mda
@@ -25,8 +25,8 @@ $emergency = expand_filename($emergency);
 my $filter = Email::Filter->new(emergency => $emergency);
 my $config = PublicInbox::Config->new;
 
-my $recipient = $ENV{RECIPIENT};
-defined $recipient or die "RECIPIENT not defined in ENV\n";
+my $recipient = $ENV{ORIGINAL_RECIPIENT};
+defined $recipient or die "ORIGINAL_RECIPIENT not defined in ENV\n";
 my $dst = $config->lookup($recipient);
 defined $dst or exit(1);
 my $main_repo = $dst->{mainrepo} or exit(1);