From df0fee8ed3892fb1258d87add809f40bebd3dce2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 23 Feb 2020 18:17:24 -0600 Subject: import_vger_from_mbox: add --filter parameter It shouldn't be hard to make this into a more generic importer not specific to vger lists. --- scripts/import_vger_from_mbox | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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 \$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) { -- cgit v1.2.3-24-ge0c7