diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-11 13:28:56 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-11 13:28:56 +0000 |
| commit | 1adf1349a98d868afcb66116b873db44c743fcc8 (patch) | |
| tree | 578b4feacdafef0f778365a69e649ddc65b1305b /roundcubemail/program/steps | |
| parent | 2de276c7dd6c0b9d16bbb4525d7b7180facb1af1 (diff) | |
- speed up adding of messages to the list after message move/delete
git-svn-id: https://svn.roundcube.net/trunk@2734 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/mark.inc | 7 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/move_del.inc | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/roundcubemail/program/steps/mail/mark.inc b/roundcubemail/program/steps/mail/mark.inc index 6a8a3ca90..b5ba4af33 100644 --- a/roundcubemail/program/steps/mail/mark.inc +++ b/roundcubemail/program/steps/mail/mark.inc @@ -100,12 +100,9 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va $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); } } } diff --git a/roundcubemail/program/steps/mail/move_del.inc b/roundcubemail/program/steps/mail/move_del.inc index df7bef981..d22cd35bd 100644 --- a/roundcubemail/program/steps/mail/move_del.inc +++ b/roundcubemail/program/steps/mail/move_del.inc @@ -115,11 +115,9 @@ else if ($addrows && ($jump_back || $nextpage_count > 0)) { $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); } } |
