From c2697725ead29c3c108a8e5f7a9f6ab7519ed7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 4 Jun 2023 21:55:50 +0200 Subject: Add new config option to set max number of IMAP connections. Default is 5 (as was the hard-coded value before). Closes issue #98. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index e4593be..e535f36 100644 --- a/main.go +++ b/main.go @@ -134,7 +134,7 @@ func run() error { if !dryRun && !buildCache { go func() { var err error - c, err = imap.Connect(cfg.Target) + c, err = imap.Connect(cfg.Target, cfg.MaxConns) imapErr <- err }() -- cgit v1.2.3