diff options
author | thomascube <thomas@roundcube.net> | 2005-10-11 21:11:42 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-10-11 21:11:42 +0000 |
commit | 520c36aa4c24ad3424b8fa3137b7576e6eacaf14 (patch) | |
tree | c14b4f621fb213f9fe71a8230ef8ac1f68a21aa0 /program/lib | |
parent | 49afbf5d698eb7d57ae10a553b6dcb14117727dd (diff) |
Better support for Courier IMAP
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/imap.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 75b0abb21..7d225c6f1 100644 --- a/program/lib/imap.inc +++ b/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; |