Skip to content

Commit

Permalink
Merge pull request #147 from gagaringlg/imap_fix
Browse files Browse the repository at this point in the history
fix long imap login delay on mailboxes with many folders
  • Loading branch information
violoncelloCH authored May 19, 2020
2 parents 85a13f4 + 71994c6 commit 0acd3e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0acd3e3

Please sign in to comment.