From c9d256ef6fff9f9b493a4ceae0490a569f3fd612 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 18 Sep 2021 20:33:24 +0000 Subject: t/config: extra test for imap_url with imaps:// I configured this for public-inbox.org, but wasn't 100% sure it worked. This test ensures it stays working :> --- t/config.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/config.t b/t/config.t index 2b02f063..7e753cbe 100644 --- a/t/config.t +++ b/t/config.t @@ -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 -- cgit v1.2.3-24-ge0c7