]> Sergey Matveev's repositories - public-inbox.git/blobdiff - scripts/import_vger_from_mbox
feed: respect feedmax, again
[public-inbox.git] / scripts / import_vger_from_mbox
index 369dac79824a30b73a5d6cac836c3194f17f946e..ca5a408da2c1b9318d46645cb034ffba299f09ec 100644 (file)
@@ -6,7 +6,6 @@ use warnings;
 use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/;
 use PublicInbox::MIME;
 use PublicInbox::InboxWritable;
-use PublicInbox::V2Writable;
 use PublicInbox::Import;
 use PublicInbox::MDA;
 my $usage = "usage: $0 NAME EMAIL DIR <MBOX\n";
@@ -29,12 +28,13 @@ my $ibx = {
        mainrepo => $mainrepo,
        name => $name,
        version => $version,
-       -primary_address => $email,
+       address => [ $email ],
        filter => 'PublicInbox::Filter::Vger',
 };
 $ibx = PublicInbox::Inbox->new($ibx);
 unless ($dry_run) {
        if ($version >= 2) {
+               require PublicInbox::V2Writable;
                PublicInbox::V2Writable->new($ibx, 1)->init_inbox(0);
        } else {
                system(qw(git init --bare -q), $mainrepo) == 0 or die;