diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-01 09:07:57 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-01 09:07:57 +0000 |
| commit | d375a45270c5964b51c2fe41cce662761d7ab786 (patch) | |
| tree | 4cf8f8eb5fc4427a87913997ee84739899efe750 /roundcubemail/program | |
| parent | 329bb576a9d382e9793897e99d56d7348763eb6b (diff) | |
- fix r2883 change (server command continuation response could be "+ Something..." not only "+ OK")
git-svn-id: https://svn.roundcube.net/trunk@2897 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index 48828c06b..ffa434ee2 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/program/lib/imap.inc @@ -2388,8 +2388,8 @@ function iil_C_Append(&$conn, $folder, &$message) { if (iil_PutLine($fp, $request)) { $line = iil_ReadLine($fp, 512); - $result = (iil_ParseResult($line) == 0); - if (!$result) { + if ($line[0] != '+') { + // $errornum = iil_ParseResult($line); $conn->error .= "Cannot write to folder: $line\n"; return false; } @@ -2437,8 +2437,8 @@ function iil_C_AppendFromFile(&$conn, $folder, $path) { if (iil_PutLine($fp, $request)) { $line = iil_ReadLine($fp, 512); - $result = (iil_ParseResult($line) == 0); - if (!$result) { + if ($line[0] != '+') { + //$errornum = iil_ParseResult($line); $conn->error .= "Cannot write to folder: $line\n"; return false; } |
