From 42b11351497ce67e96a0465c76694632cdfb3ecb Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 07 Oct 2005 10:17:08 -0400
Subject: [PATCH] Several bugfixes and feature improvements

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

diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 9ee476e..75b0abb 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -345,6 +345,7 @@
 		fputs($conn->fp, "cp01 CAPABILITY\r\n");
 		do{
 		$line = trim(chop(iil_ReadLine($conn->fp, 100)));
+		$conn->message.="$line\n";
 			$a = explode(" ", $line);
 			if ($line[0]=="*"){
 				while ( list($k, $w) = each($a) ){
@@ -362,6 +363,7 @@
 		//do CRAM-MD5 authentication
 		fputs($conn->fp, "a000 AUTHENTICATE CRAM-MD5\r\n");
 		$line = trim(chop(iil_ReadLine($conn->fp, 1024)));
+		$conn->message.="$line\n";
 		if ($line[0]=="+"){
 			$conn->message.='Got challenge: '.htmlspecialchars($line)."\n";
 			//got a challenge string, try CRAM-5

--
Gitblit v1.9.1