- my $ibx = PublicInbox::InboxWritable->new({
- inboxdir => "$home/v$V-$i",
- name => "test-v$V-$i",
- version => $V,
- indexlevel => 'medium',
- -primary_address => "v$V-$i\@example.com",
- }, { nproc => int(rand(8)) + 1 });
- push @ibx, $ibx;
- my $im = $ibx->importer(0);
- for my $j (0..9) {
- my $eml = PublicInbox::Eml->new(<<EOF);
+ push @ibx, create_inbox("v$V-$i", indexlevel => 'full',
+ version => $V, sub {
+ my ($im, $ibx) = @_;
+ for my $j (0..9) {
+ my $eml = PublicInbox::Eml->new(<<EOM);