From b93d00026aefbdccfabd6253f9cb184956617084 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 07 Jun 2010 06:03:59 -0400
Subject: [PATCH] - fix for initial capability response

---
 program/include/rcube_imap_generic.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index cd6a58d..d5a5e3d 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -645,6 +645,7 @@
 	    // RFC3501 [7.1] optional CAPABILITY response
 	    if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) {
 		    $this->capability = explode(' ', strtoupper($matches[1]));
+		    $this->capability_readed = true;
 	    }
 
 	    $this->message .= $line;
@@ -716,6 +717,7 @@
             }
 		    $this->getNamespace();
             $this->logged = true;
+
 		    return true;
 	    } else {
 		    return false;

--
Gitblit v1.9.1