user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 0/2] import_vger_from_mbox improvements
@ 2020-02-24  0:17  6% Eric Wong
  2020-02-24  0:17  7% ` [PATCH 2/2] import_vger_from_mbox: add --filter parameter Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-02-24  0:17 UTC (permalink / raw)
  To: meta

There are lots of mboxes out there :)

Eric Wong (2):
  import_vger_from_mbox: drop redundant "use" statements
  import_vger_from_mbox: add --filter parameter

 scripts/import_vger_from_mbox | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


^ permalink raw reply	[relevance 6%]

* [PATCH 2/2] import_vger_from_mbox: add --filter parameter
  2020-02-24  0:17  6% [PATCH 0/2] import_vger_from_mbox improvements Eric Wong
@ 2020-02-24  0:17  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-02-24  0:17 UTC (permalink / raw)
  To: meta

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 <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) {

^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-02-24  0:17  6% [PATCH 0/2] import_vger_from_mbox improvements Eric Wong
2020-02-24  0:17  7% ` [PATCH 2/2] import_vger_from_mbox: add --filter parameter Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).