From 4845a1ea952f4affda3546abd7dfa02d24fc818c Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 11 Sep 2007 04:45:41 -0400
Subject: [PATCH] Fixed message search issues

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

diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index bef821b..a3f6dda 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -78,7 +78,7 @@
 {
   // Get the headers
   $result_h = $IMAP->list_header_set($mbox, $result, 1, $_SESSION['sort_col'], $_SESSION['sort_order']);
-  $count = count($result_h);
+  $count = $IMAP->messagecount();
 
   // save search results in session
   if (!is_array($_SESSION['search']))

--
Gitblit v1.9.1