- @cmd = ('-init', 'xyz', $otherdir, 'http://example.com/xyz',
- 'e@example.com', "-V$version", qw(-Lbasic --newsgroup x.y.z));
- ok(run_script(\@cmd), 'init xyz');
- is(xsys([qw(git config -f), "$home/.public-inbox/config",
- qw(publicinboxmda.spamcheck none)]), 0, 'disable spamcheck');
-
- open(my $fh, '<', 't/utf8.eml') or BAIL_OUT("open t/utf8.eml: $!");
- my $env = { ORIGINAL_RECIPIENT => 'e@example.com' };
- run_script([qw(-mda --no-precheck)], $env, { 0 => $fh }) or
- BAIL_OUT('-mda delivery');
-
- my $len;
- $ibx = PublicInbox::InboxWritable->new($ibx);
- my $im = $ibx->importer(0);
-
- # ensure successful message delivery
- {
- my $mime = PublicInbox::Eml->new(<<EOF);