-my $spec = "serial:$aid:file=blah.sqlite3";
-if ('setup') {
- my $opts = {
- inboxdir => $inboxdir,
- name => 'test',
- -primary_address => 'test@example.com',
- };
- my $ibx = PublicInbox::Inbox->new($opts);
- $ibx = PublicInbox::InboxWritable->new($ibx, 1);
- my $im = $ibx->importer(0);
- my $mime = PublicInbox::Eml->new(<<'EOF');
+my $cfgpath;
+my $ibx = create_inbox 'test', indexlevel => 'basic', sub {
+ my ($im, $ibx) = @_;
+ $im->add(PublicInbox::Eml->new(<<'EOF')) or BAIL_OUT;