my $cfg = PublicInbox::Config->new($f);
is_deeply($cfg->lookup('meta@public-inbox.org'), {
'mainrepo' => '/home/pi/meta-main.git',
- 'address' => 'meta@public-inbox.org',
+ 'address' => [ 'meta@public-inbox.org' ],
'domain' => 'public-inbox.org',
'url' => 'http://example.com/meta',
-primary_address => 'meta@public-inbox.org',
my $cfg = PublicInbox::Config->new(\%tmp);
my $ibx = $cfg->lookup_name('test');
is($ibx->{nntpserver}, 'news.example.com', 'global NNTP server');
+
+ delete $h{'publicinbox.nntpserver'};
+ $h{"$pfx.nntpserver"} = 'news.alt.example.com';
+ $cfg = PublicInbox::Config->new(\%h);
+ $ibx = $cfg->lookup_name('test');
+ is($ibx->{nntpserver}, 'news.alt.example.com','per-inbox NNTP server');
}
done_testing();