summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-01 09:07:57 +0000
committeralecpl <alec@alec.pl>2009-09-01 09:07:57 +0000
commit0c66285cf995d1f578711a73db0e413fb26bf5ef (patch)
tree4087287c6c126f24f20b280bff11979dcab14455 /program/lib
parent3181bef92bc1b772300de0a5ea4000390021c8bd (diff)
- fix r2883 change (server command continuation response could be "+ Something..." not only "+ OK")
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 48828c06b..ffa434ee2 100644
--- a/program/lib/imap.inc
+++ b/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;
}