user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] t/config: extra test for imap_url with imaps://
@ 2021-09-18 20:33 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-09-18 20:33 UTC (permalink / raw)
  To: meta

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-18 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-18 20:33 [PATCH] t/config: extra test for imap_url with imaps:// Eric Wong

Code repositories for project(s) associated with this inbox:

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).