From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 20C6C1FDEA for ; Mon, 12 Jan 2015 02:31:07 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] import_slrnspool: make filtering optional Date: Mon, 12 Jan 2015 02:30:54 +0000 Message-Id: <1421029857-1702-2-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.2.0.35.g882592c In-Reply-To: <1421029857-1702-1-git-send-email-e@80x24.org> References: <1421029857-1702-1-git-send-email-e@80x24.org> List-Id: --- scripts/import_slrnspool | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/import_slrnspool b/scripts/import_slrnspool index b3a1b1d..1f25eff 100755 --- a/scripts/import_slrnspool +++ b/scripts/import_slrnspool @@ -20,7 +20,12 @@ defined $recipient or die usage(); my $config = PublicInbox::Config->new; my $cfg = $config->lookup($recipient); defined $cfg or exit(1); -my @mda = (qw(ssoma-mda -1), $cfg->{mainrepo}); +my @mda; +if ($ENV{'FILTER'}) { + @mda = qw(public-inbox-mda); +} else { + @mda = (qw(ssoma-mda -1), $cfg->{mainrepo}); +} sub get_min { my ($cfg) = @_; -- EW