From 32efb0b6313641b29e24ba8cbad7a297e223a430 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 10 Sep 2008 10:57:07 -0400
Subject: [PATCH] Trigger SELECT command to restore connection status after reconnect (#1485330)

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

diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 0c36575..8a7ad2c 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -166,6 +166,10 @@
     {
     $this->close();
     $this->connect($this->host, $this->user, $this->pass, $this->port, $this->ssl);
+    
+    // issue SELECT command to restore connection status
+    if ($this->mailbox)
+      iil_C_Select($this->conn, $this->mailbox);
     }
 
 

--
Gitblit v1.9.1