Skip to content

Commit 0acd3e3

Browse files
Merge pull request #147 from gagaringlg/imap_fix
fix long imap login delay on mailboxes with many folders
2 parents 85a13f4 + 71994c6 commit 0acd3e3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/imap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function checkPassword($uid, $password) {
9595
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
9696
curl_setopt($ch, CURLOPT_USERPWD, $username.":".$password);
9797
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
98+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'CAPABILITY');
9899

99100
$canconnect = curl_exec($ch);
100101

0 commit comments

Comments
 (0)