From 0c66285cf995d1f578711a73db0e413fb26bf5ef Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 01 Sep 2009 05:07:57 -0400
Subject: [PATCH] - fix r2883 change (server command continuation response could be "+ Something..." not only "+ OK")

---
 program/lib/imap.inc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 48828c0..ffa434e 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -2388,8 +2388,8 @@
 	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 @@
 	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;
 		}

--
Gitblit v1.9.1