| | |
| | | if (!empty($_GET['_quota'])) |
| | | $OUTPUT->command('set_quota', rcmail_quota_content($IMAP->get_quota())); |
| | | |
| | | // trigger plugin hook |
| | | $RCMAIL->plugins->exec_hook('new_messages', array('mailbox' => $mbox_name, 'count' => $unread_count)); |
| | | |
| | | // "No-list" mode, don't get messages |
| | | if (empty($_GET['_list'])) |
| | | continue; |
| | |
| | | rcmail_js_message_list($result_h, true, false); |
| | | } |
| | | } |
| | | else { |
| | | rcmail_send_unread_count($mbox_name, true); |
| | | } |
| | | } |
| | | else if ($unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) { |
| | | $OUTPUT->command('set_unread_count', $mbox_name, $unseen); |
| | | else if ($check_all) { |
| | | rcmail_send_unread_count($mbox_name, true); |
| | | } |
| | | } |
| | | |