diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-12-20 14:27:47 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-12-20 14:27:47 +0000 |
| commit | 038ecf30db68e45c232a95a60c2ea47678962ad7 (patch) | |
| tree | d42b47eb7117738fb068eb676080704b8db1b894 /roundcubemail/program/steps/mail/list.inc | |
| parent | ba1e3f171525849f5bb1864b289c0e65c5ea03c4 (diff) | |
Fixed wrong message listing when showing search results
git-svn-id: https://svn.roundcube.net/trunk@422 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/list.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/list.inc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc index b3ea08b28..9e3b38d57 100644 --- a/roundcubemail/program/steps/mail/list.inc +++ b/roundcubemail/program/steps/mail/list.inc @@ -40,20 +40,11 @@ else $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']; } - -// we have a saved search request -if (!empty($_GET['_search']) && isset($_SESSION['search'][$_GET['_search']])) - { - $a_msgs = split(',', $_SESSION['search'][$_GET['_search']]); - $a_headers = $IMAP->list_header_set($mbox_name, $a_msgs, NULL, $sort_col, $sort_order); - $count = count($a_msgs); - } -else - { - if ($count = $IMAP->messagecount()) - $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); - } + +// fetch message headers +if ($count = $IMAP->messagecount()) + $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); $unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_GET['_refresh']) ? TRUE : FALSE); |
