From f35f9c53fef2d48cb84a49e12ab46ad1d3fbc539 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 21 May 2008 04:19:26 -0400
Subject: [PATCH] -commented out optional capability response reading on connect

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

diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index fcd3a2c..eca4d63 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -480,9 +480,10 @@
 	$line       = iil_ReadLine($conn->fp, 1024);
 
 	// RFC3501 [7.1] optional CAPABILITY response
-	if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) {
-		$conn->capability = explode(' ', $matches[1]);
-	} else {
+	// commented out, because it's not working always as should
+//	if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) {
+//		$conn->capability = explode(' ', $matches[1]);
+//	} else {
 		fputs($conn->fp, "cp01 CAPABILITY\r\n");
 		do {
 			$line = trim(chop(iil_ReadLine($conn->fp, 100)));
@@ -497,7 +498,7 @@
 				}
 			}
 		} while ($a[0] != 'cp01');
-	}
+//	}
 
 	if (strcasecmp($auth_method, "check") == 0) {
 		//check for supported auth methods

--
Gitblit v1.9.1