From 66773789e392305bba4cdf7ed8e6ae3b8380de51 Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Thu, 27 Oct 2005 09:45:33 -0400
Subject: [PATCH] 

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

diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index 009c80a..8253442 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -433,7 +433,7 @@
     }
 
 
-  // old function; replaced 2005/10/18
+  // original function; replaced 2005/10/18
   // private method for listing message header
   function _list_headers($mailbox='', $page=NULL, $sort_field='date', $sort_order='DESC')
     {
@@ -478,7 +478,7 @@
     // return complete list of messages
     if (strtolower($page)=='all')
       return $a_headers;
-	
+
     $start_msg = ($this->list_page-1) * $this->page_size;
     return array_slice($a_headers, $start_msg, $this->page_size);
     }
@@ -1086,10 +1086,10 @@
 
   function _mod_mailbox($mbox, $mode='in')
     {
-    if (!empty($this->root_ns) && $this->root_ns == $mbox)
+    if ((!empty($this->root_ns) && $this->root_ns == $mbox) || ($mbox == 'INBOX' && $mode == 'in'))
       return $mbox;
 
-    if (!empty($this->root_dir) &&  $mode=='in') 
+    if (!empty($this->root_dir) && $mode=='in') 
       $mbox = $this->root_dir.$this->delimiter.$mbox;
     else if (strlen($this->root_dir) && $mode=='out') 
       $mbox = substr($mbox, strlen($this->root_dir)+1);

--
Gitblit v1.9.1