diff options
author | Eric Wong <e@yhbt.net> | 2020-06-21 00:21:33 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-23 00:22:18 +0000 |
commit | 5759c29ba5e0c8b2b1135e528e133dc7dde219f8 (patch) | |
tree | 841e315a7c4c54910bcc72868f4eb92a51fcc092 /lib/PublicInbox/V2Writable.pm | |
parent | 3ba0028804c50b75b1854d0c2bf637ebce0aa8b1 (diff) | |
download | public-inbox-5759c29ba5e0c8b2b1135e528e133dc7dde219f8.tar.gz |
For archivists with only newer mail archives, this option allows reserving reserve NNTP article numbers for yet-to-be-archived old messages. Indexers will need to be updated to support this feature in future commits. -V1 inboxes will now be initialized with SQLite and Xapian support if this option is used, or if --indexlevel= is specified.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 91379431..a0f041dd 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -128,12 +128,13 @@ sub new { # public (for now?) sub init_inbox { - my ($self, $shards, $skip_epoch) = @_; + my ($self, $shards, $skip_epoch, $skip_artnum) = @_; if (defined $shards) { $self->{parallel} = 0 if $shards == 0; $self->{shards} = $shards if $shards > 0; } $self->idx_init; + $self->{mm}->skip_artnum($skip_artnum) if defined $skip_artnum; my $epoch_max = -1; git_dir_latest($self, \$epoch_max); if (defined $skip_epoch && $epoch_max == -1) { |