diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-12-23 11:33:41 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-12-23 11:33:41 +0100 |
commit | ac0fc383fd43e8955b0ab22f70463159b14c74b0 (patch) | |
tree | 3b0c5aafc0e8b6cb5b58d671f5f048ecb100f9ce /program/steps/mail/list.inc | |
parent | 6b2b2eca5fa48720c4e5b31b9aae200a185dfc0e (diff) |
Fix so message flags modified by another client are applied on the list on refresh (#1485186)
Diffstat (limited to 'program/steps/mail/list.inc')
-rw-r--r-- | program/steps/mail/list.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc index fe7991c29..91c53e852 100644 --- a/program/steps/mail/list.inc +++ b/program/steps/mail/list.inc @@ -23,8 +23,8 @@ if (!$OUTPUT->ajax_call) { return; } -$save_arr = array(); -$dont_override = (array) $RCMAIL->config->get('dont_override'); +$save_arr = array(); +$dont_override = (array) $RCMAIL->config->get('dont_override'); // is there a sort type for this request? if ($sort = rcube_utils::get_input_value('_sort', rcube_utils::INPUT_GET)) { @@ -104,6 +104,13 @@ if (isset($a_headers) && count($a_headers)) { if ($search_request) { $OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count)); } + + // remember last HIGHESTMODSEQ value (if supported) + // we need it for flag updates in check-recent + $data = $RCMAIL->storage->folder_data($mbox_name); + if (!empty($data['HIGHESTMODSEQ'])) { + $_SESSION['list_mod_seq'] = $data['HIGHESTMODSEQ']; + } } else { // handle IMAP errors (e.g. #1486905) |