|
|
@ -162,11 +162,13 @@ if (!empty($result_h)) {
|
|
|
|
|
|
|
|
|
|
|
|
// remember last HIGHESTMODSEQ value (if supported)
|
|
|
|
// remember last HIGHESTMODSEQ value (if supported)
|
|
|
|
// we need it for flag updates in check-recent
|
|
|
|
// we need it for flag updates in check-recent
|
|
|
|
$data = $RCMAIL->storage->folder_data($mbox_name);
|
|
|
|
if ($mbox !== null) {
|
|
|
|
|
|
|
|
$data = $RCMAIL->storage->folder_data($mbox);
|
|
|
|
if (!empty($data['HIGHESTMODSEQ'])) {
|
|
|
|
if (!empty($data['HIGHESTMODSEQ'])) {
|
|
|
|
$_SESSION['list_mod_seq'] = $data['HIGHESTMODSEQ'];
|
|
|
|
$_SESSION['list_mod_seq'] = $data['HIGHESTMODSEQ'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// handle IMAP errors (e.g. #1486905)
|
|
|
|
// handle IMAP errors (e.g. #1486905)
|
|
|
|
else if ($err_code = $RCMAIL->storage->get_error_code()) {
|
|
|
|
else if ($err_code = $RCMAIL->storage->get_error_code()) {
|
|
|
|
$RCMAIL->display_server_error();
|
|
|
|
$RCMAIL->display_server_error();
|
|
|
@ -189,7 +191,7 @@ $OUTPUT->set_env('search_filter', $_SESSION['search_filter']);
|
|
|
|
$OUTPUT->set_env('threading', $RCMAIL->storage->get_threading());
|
|
|
|
$OUTPUT->set_env('threading', $RCMAIL->storage->get_threading());
|
|
|
|
$OUTPUT->set_env('messagecount', $count);
|
|
|
|
$OUTPUT->set_env('messagecount', $count);
|
|
|
|
$OUTPUT->set_env('pagecount', ceil($count/$RCMAIL->storage->get_pagesize()));
|
|
|
|
$OUTPUT->set_env('pagecount', ceil($count/$RCMAIL->storage->get_pagesize()));
|
|
|
|
$OUTPUT->set_env('exists', $RCMAIL->storage->count($mbox_name, 'EXISTS'));
|
|
|
|
$OUTPUT->set_env('exists', $mbox === null ? 0 : $RCMAIL->storage->count($mbox, 'EXISTS'));
|
|
|
|
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count, 1), $mbox);
|
|
|
|
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count, 1), $mbox);
|
|
|
|
$OUTPUT->set_pagetitle($RCMAIL->gettext(array('name' => 'searchfor', 'vars' => array('q' => $str))));
|
|
|
|
$OUTPUT->set_pagetitle($RCMAIL->gettext(array('name' => 'searchfor', 'vars' => array('q' => $str))));
|
|
|
|
$OUTPUT->send();
|
|
|
|
$OUTPUT->send();
|
|
|
|