diff options
author | Eric Wong <e@80x24.org> | 2021-09-18 20:33:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-19 00:04:10 +0000 |
commit | c9d256ef6fff9f9b493a4ceae0490a569f3fd612 (patch) | |
tree | 4393a37cfe43493427d5337ce255e21b9b2203ed | |
parent | f3d0e746c6a35c8600b91af99958a52cbc114a4b (diff) | |
download | public-inbox-c9d256ef6fff9f9b493a4ceae0490a569f3fd612.tar.gz |
I configured this for public-inbox.org, but wasn't 100% sure it worked. This test ensures it stays working :>
-rw-r--r-- | t/config.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -112,12 +112,16 @@ $pfx.inboxdir=/path/to/non/existent $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'); + is_deeply($ibx->imap_url({ www => { pi_cfg => $cfg }}), + [ 'imaps://mail.example.com/inbox.test' ], + 'nntp_url uses per-inbox NNTP server'); } # no obfuscate domains |