From 1c910ebd5d088b68fd1cec41285ad62641673845 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 20 Apr 2014 23:27:46 +0000 Subject: use ORIGINAL_RECIPIENT once again 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 --- public-inbox-mda | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public-inbox-mda') 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); -- cgit v1.2.3-24-ge0c7