From 71994c6148a97402ca82c452a4baef62860c6d0b Mon Sep 17 00:00:00 2001 From: Malte Langermann Date: Mon, 11 May 2020 16:30:46 +0200 Subject: [PATCH] fix long imap login delay on mailboxes with many folders Signed-off-by: Malte Langermann --- lib/imap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/imap.php b/lib/imap.php index da6089d..c48fba6 100644 --- a/lib/imap.php +++ b/lib/imap.php @@ -95,6 +95,7 @@ public function checkPassword($uid, $password) { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, $username.":".$password); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'CAPABILITY'); $canconnect = curl_exec($ch);