- my $ibx = PublicInbox::InboxWritable->new({
- inboxdir => "$tmpdir/v1",
- name => 'test-v1',
- indexlevel => 'basic',
- -primary_address => $addr,
- }, my $creat_opt = {});
- my @old;
- if ('setup v1 inbox') {
- my $im = $ibx->importer(0);
- for (@$order) {
- ok($im->add($_), 'added '.$_->header('Subject'));
+ my $ibx = create_inbox "test$delay.$nr", indexlevel => 'basic', sub {
+ my ($im) = @_;
+ for my $eml (@$order) {
+ $im->add($eml) or BAIL_OUT;