diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-12-03 08:16:44 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-12-03 08:16:44 +0000 |
| commit | 98754c71693155dff5bca2fc93eb28f7926ae81a (patch) | |
| tree | 563588c033afc2a4c6d53e3aff3d2edebee2a1e0 | |
| parent | 9bafa7e81ba587659fc335bc2bc587cfde7739c9 (diff) | |
#1485587: show proper message when using status filter
git-svn-id: https://svn.roundcube.net/trunk@2109 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/list.inc | 6 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/search.inc | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc index 2078262eb..5cc2a574d 100644 --- a/roundcubemail/program/steps/mail/list.inc +++ b/roundcubemail/program/steps/mail/list.inc @@ -68,7 +68,13 @@ $OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text()); // add message rows if (isset($a_headers) && count($a_headers)) +{ rcmail_js_message_list($a_headers); + if ($search_request) + $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count)); +} +else if ($search_request) + $OUTPUT->show_message('searchnomatch', 'notice'); else $OUTPUT->show_message('nomessagesfound', 'notice'); diff --git a/roundcubemail/program/steps/mail/search.inc b/roundcubemail/program/steps/mail/search.inc index b7ab2e182..aa76f8e43 100644 --- a/roundcubemail/program/steps/mail/search.inc +++ b/roundcubemail/program/steps/mail/search.inc @@ -99,12 +99,12 @@ if (!is_array($_SESSION['search'])) // Make sure we got the headers if (!empty($result_h)) { + rcmail_js_message_list($result_h); if ($search_str) { $_SESSION['search'][$search_request] = $IMAP->get_search_set(); $_SESSION['last_text_search'] = $str; + $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count)); } - rcmail_js_message_list($result_h); - $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count)); } else { |
