#1485587: show proper message when using status filter
| | |
| | | |
| | | // 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'); |
| | | |
| | |
| | | // 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 |
| | | { |