From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EAC641F61C for ; Mon, 24 Feb 2020 00:17:24 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] import_vger_from_mbox: add --filter parameter Date: Sun, 23 Feb 2020 18:17:24 -0600 Message-Id: <20200224001724.5254-3-e@yhbt.net> In-Reply-To: <20200224001724.5254-1-e@yhbt.net> References: <20200224001724.5254-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(-) 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) {