about summary refs log tree commit homepage
path: root/scripts/import_vger_from_mbox
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-02-23 18:17:24 -0600
committerEric Wong <e@yhbt.net>2020-02-24 18:30:06 +0000
commitdf0fee8ed3892fb1258d87add809f40bebd3dce2 (patch)
tree03772a7184caed9027b85c71922480bdece30a6d /scripts/import_vger_from_mbox
parent5680b5f6366d19a069dd9bbf066c8b094ba176b5 (diff)
downloadpublic-inbox-df0fee8ed3892fb1258d87add809f40bebd3dce2.tar.gz
It shouldn't be hard to make this into a more generic
importer not specific to vger lists.
Diffstat (limited to 'scripts/import_vger_from_mbox')
-rw-r--r--scripts/import_vger_from_mbox4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/import_vger_from_mbox b/scripts/import_vger_from_mbox
index b3aceb6b..d1ce7231 100644
--- a/scripts/import_vger_from_mbox
+++ b/scripts/import_vger_from_mbox
@@ -9,10 +9,12 @@ my $usage = "usage: $0 NAME EMAIL DIR <MBOX\n";
 my $dry_run;
 my $version = 2;
 my $variant = 'mboxrd';
+my $filter = 'PublicInbox::Filter::Vger';
 my %opts = (
         'n|dry-run' => \$dry_run,
         'V|version=i' => \$version,
         'F|format=s' => \$variant,
+        'filter=s' => \$filter,
 );
 GetOptions(%opts) or die $usage;
 if ($variant ne 'mboxrd' && $variant ne 'mboxo') {
@@ -26,7 +28,7 @@ my $ibx = {
         name => $name,
         version => $version,
         address => [ $email ],
-        filter => 'PublicInbox::Filter::Vger',
+        filter => $filter,
 };
 $ibx = PublicInbox::Inbox->new($ibx);
 unless ($dry_run) {