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 --- scripts/import_gmane_spool | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/import_gmane_spool b/scripts/import_gmane_spool index e072b810..3cda0bf6 100755 --- a/scripts/import_gmane_spool +++ b/scripts/import_gmane_spool @@ -6,10 +6,10 @@ =begin usage mkdir -p $HOME/.public-inbox MAINREPO=/path/to/your/repo.git - export RECIPIENT='list@example.com' + export ORIGINAL_RECIPIENT='list@example.com' git init --bare $MAINREPO export GIT_CONFIG=$HOME/.public-inbox/config - git config publicinbox.$LISTNAME.address $RECIPIENT + git config publicinbox.$LISTNAME.address $ORIGINAL_RECIPIENT git config publicinbox.$LISTNAME.mainrepo $MAINREPO unset GIT_CONFIG ./import_gmane_spool SLRNPULL_ROOT/news/foo/bar @@ -22,7 +22,7 @@ use PublicInbox::Config; use IPC::Run qw(run); sub usage { "Usage:\n".join("",grep(/\t/, `head -n 24 $0`)) } my $spool = shift @ARGV or die usage(); -defined $ENV{RECIPIENT} or die usage(); +defined $ENV{ORIGINAL_RECIPIENT} or die usage(); my @args = ('public-inbox-mda'); chdir $spool or die "chdir $spool failed: $!\n"; -- cgit v1.2.3-24-ge0c7