summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-06 09:57:39 +0000
committeralecpl <alec@alec.pl>2010-05-06 09:57:39 +0000
commitc833ed4053106c9df58b84a441cc4509cda45a38 (patch)
tree2ffa43446104574e7fceb7d0d69f7f3a0b18c812 /program/steps
parentc6a6d25214c406e63586fc832daa6fcdc20231dc (diff)
- Fix listupdate event doesn't trigger on search response (#1486708)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/mark.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index 1a2838cd8..ae8f0e3a6 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -42,7 +42,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va
}
$marked = $IMAP->set_flag($uids, $flag);
-
+
if ($marked == -1) {
// send error message
if ($_POST['_from'] != 'show')
@@ -55,7 +55,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va
if ($flag == 'DELETED' && $CONFIG['read_when_deleted'] && !empty($_POST['_ruid'])) {
$ruids = get_input_value('_ruid', RCUBE_INPUT_POST);
$read = $IMAP->set_flag($ruids, 'SEEN');
-
+
if ($read != -1 && !$CONFIG['skip_deleted'])
$OUTPUT->command('flag_deleted_as_read', $ruids);
}
@@ -110,17 +110,17 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va
if ($count && $uids != '*' && ($jump_back || $nextpage_count > 0)) {
$sort_col = isset($_SESSION['sort_col']) ? $_SESSION['sort_col'] : $CONFIG['message_sort_col'];
$sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order'];
-
+
$a_headers = $IMAP->list_headers($mbox, NULL, $sort_col, $sort_order,
$jump_back ? NULL : $count);
-
+
rcmail_js_message_list($a_headers, false, false);
}
}
}
-
+
$OUTPUT->send();
}
-
+
exit;
?>