Merge pull request #147 from gagaringlg/imap_fix

fix long imap login delay on mailboxes with many folders
This commit is contained in:
violoncello.ch
2020-05-19 16:46:00 +02:00
committed by GitHub

View File

@@ -95,6 +95,7 @@ class OC_User_IMAP extends \OCA\user_external\Base {
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);