X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=scripts%2Fimport_vger_from_mbox;h=c33e42e45c2823e1e87e9a2139fea60efc132468;hb=96a5e841a169166457d9cf485e27a0d6cbe7ed75;hp=6329dd16090095e379f24676da6868849e4b0960;hpb=3c39f9c942a6975245fda878e9b957d8d3367662;p=public-inbox.git
diff --git a/scripts/import_vger_from_mbox b/scripts/import_vger_from_mbox
index 6329dd16..c33e42e4 100644
--- a/scripts/import_vger_from_mbox
+++ b/scripts/import_vger_from_mbox
@@ -1,21 +1,20 @@
#!/usr/bin/perl -w
-# Copyright (C) 2016-2019 all contributors
+# Copyright (C) 2016-2021 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/;
-use PublicInbox::MIME;
use PublicInbox::InboxWritable;
-use PublicInbox::Import;
-use PublicInbox::MDA;
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') {
@@ -29,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) {