From 34ebe0ba2c726bc679778dfb9faf92b30f303494 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 11 Jul 2009 09:28:56 -0400
Subject: [PATCH] - speed up adding of messages to the list after message move/delete

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

diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index 6a8a3ca..b5ba4af 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -100,12 +100,9 @@
 	$sort_col   = isset($_SESSION['sort_col'])   ? $_SESSION['sort_col']   : $CONFIG['message_sort_col'];
 	$sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order'];
   
-	$a_headers = $IMAP->list_headers($mbox, NULL, $sort_col, $sort_order);
-	if (!$jump_back) {
-          $a_headers = array_slice($a_headers, -$count, $count);
-        }
+	$a_headers = $IMAP->list_headers($mbox, NULL, $sort_col, $sort_order, $count);
       
-      rcmail_js_message_list($a_headers, false, false);
+        rcmail_js_message_list($a_headers, false, false);
       }
     }
   }

--
Gitblit v1.9.1