From 31b2cee231cf5a154c87cccc1228df7b3bb1bf84 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 11 Dec 2005 17:56:46 -0500
Subject: [PATCH] Bugfixes on listing and caching functions

---
 program/steps/mail/func.inc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index c81dd2f..74a9678 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -528,12 +528,11 @@
   
   if (isset($MESSAGE['index']))
     {
-    $a_msg_index = $IMAP->message_index();
     return rcube_label(array('name' => 'messagenrof',
                              'vars' => array('nr'  => $MESSAGE['index']+1,
-                                             'count' => sizeof($a_msg_index))));
+                                             'count' => $IMAP->messagecount())));
     }
-  
+
   $start_msg = ($IMAP->list_page-1) * $IMAP->page_size + 1;
   $max = $IMAP->messagecount();
 

--
Gitblit v1.9.1