- my @cmd = ('-init', $group, $inboxdir, 'http://example.com/', $addr);
- push @cmd, "-V$version", '-Lbasic';
- ok(run_script(\@cmd), 'init OK');
- is(xsys(qw(git config), "--file=$home/.public-inbox/config",
- "publicinbox.$group.newsgroup", $group),
- 0, 'enabled newsgroup');
- my $len;
+ my @cmd = ('-init', $group, $inboxdir, 'http://example.com/abc', $addr,
+ "-V$version", '-Lbasic', '--newsgroup', $group);
+ ok(run_script(\@cmd), "init $group");
+
+ @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');