| | |
| | | | program/steps/mail/list.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2007, Roundcube Dev. - Switzerland | |
| | | | Copyright (C) 2005-2007, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | 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'); |
| | | else { |
| | | // handle IMAP errors (e.g. #1486905) |
| | | if ($err_code = $IMAP->get_error_code()) { |
| | | rcmail_display_server_error(); |
| | | } |
| | | else if ($search_request) |
| | | $OUTPUT->show_message('searchnomatch', 'notice'); |
| | | else |
| | | $OUTPUT->show_message('nomessagesfound', 'notice'); |
| | | } |
| | | |
| | | // send response |
| | | $OUTPUT->send(); |