+my $ibx = create_inbox "v$version", version => $version, indexlevel => 'basic',
+ tmpdir => $inboxdir, sub {
+ my ($im, $ibx) = @_;
+ $im->add($eml) or BAIL_OUT;
+};
+undef $eml;
+my $other = create_inbox "other$version", version => $version,
+ indexlevel => 'basic', sub {
+ my ($im) = @_;
+ $im->add(eml_load 't/utf8.eml') or BAIL_OUT;
+};
+
+local $ENV{HOME} = $home;
+mkdir $home or BAIL_OUT $!;
+mkdir "$home/.public-inbox" or BAIL_OUT $!;
+open my $cfgfh, '>', "$home/.public-inbox/config" or BAIL_OUT $!;
+print $cfgfh <<EOF or BAIL_OUT;
+[publicinbox "$group"]
+ inboxdir = $inboxdir
+ url = http://example.com/abc
+ address = $addr
+ indexlevel = basic
+ newsgroup = $group
+[publicinbox "xyz"]
+ inboxdir = $other->{inboxdir}
+ url = http://example.com/xyz
+ address = e\@example.com
+ indexlevel = basic
+ newsgroup = x.y.z
+[publicinboxMda]
+ spamcheck = none
+EOF
+close $cfgfh or BAIL_OUT;
+
+{