I configured this for public-inbox.org, but wasn't 100% sure it
worked. This test ensures it stays working :>
$pfx.newsgroup=inbox.test
$pfx.nntpserver=news.alt.example.com
publicinbox.nntpserver=news.example.com
$pfx.newsgroup=inbox.test
$pfx.nntpserver=news.alt.example.com
publicinbox.nntpserver=news.example.com
+publicinbox.imapserver=imaps://mail.example.com
EOF
$cfg = PublicInbox::Config->new(\$str);
$ibx = $cfg->lookup_name('test');
is_deeply($ibx->nntp_url({ www => { pi_cfg => $cfg }}),
[ 'nntp://news.alt.example.com/inbox.test' ],
'nntp_url uses per-inbox NNTP server');
EOF
$cfg = PublicInbox::Config->new(\$str);
$ibx = $cfg->lookup_name('test');
is_deeply($ibx->nntp_url({ www => { pi_cfg => $cfg }}),
[ 'nntp://news.alt.example.com/inbox.test' ],
'nntp_url uses per-inbox NNTP server');
+ is_deeply($ibx->imap_url({ www => { pi_cfg => $cfg }}),
+ [ 'imaps://mail.example.com/inbox.test' ],
+ 'nntp_url uses per-inbox NNTP server');