]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import_slrnspool: make filtering optional
authorEric Wong <e@80x24.org>
Sun, 11 Jan 2015 23:13:08 +0000 (23:13 +0000)
committerEric Wong <e@80x24.org>
Sun, 11 Jan 2015 23:13:08 +0000 (23:13 +0000)
scripts/import_slrnspool

index b3a1b1d88be81409868fc59e68b603b5c3f8ca5a..1f25eff27f3b39e5b5fd6d5fbbe1d6677fe7cc21 100755 (executable)
@@ -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) = @_;