diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-11 21:11:42 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-11 21:11:42 +0000 |
| commit | da2e18f380734999ec1d1ba57091850bf296f554 (patch) | |
| tree | c6a2c18e08299c9ed14ef708fd8e25920625ae90 /roundcubemail/program/lib | |
| parent | f5050a3e1f1e3dfabc03e6f02263c7d0d656e76d (diff) | |
Better support for Courier IMAP
git-svn-id: https://svn.roundcube.net/trunk@25 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index 75b0abb21..7d225c6f1 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/program/lib/imap.inc @@ -325,9 +325,9 @@ function iil_Connect($host, $user, $password){ } //open socket connection - $conn->fp = @fsockopen($host, $ICL_PORT); + $conn->fp = @fsockopen($host, $ICL_PORT, &$errno, &$errstr, 10); if (!$conn->fp){ - $iil_error = "Could not connect to $host at port $ICL_PORT"; + $iil_error = "Could not connect to $host at port $ICL_PORT: $errstr"; $iil_errornum = -1; return false; } @@ -1440,7 +1440,7 @@ function iil_C_ModFlag(&$conn, $mailbox, $messages, $flag, $mod){ $line=chop(iil_ReadLine($fp, 100)); if ($line[0]=="*") $c++; }while (!iil_StartsWith($line, "flg")); - + if (iil_ParseResult($line) == 0){ iil_C_ExpireCachedItems($conn, $mailbox, $messages); return $c; |
