Update message list on recent messages stopped working
|Reported by:||rosali||Owned by:|
We have a lot of complaints on roundcubeforum.net that updating the message list on recent messages stopped working. This issue occurs obviously for various IMAP backends.
I have tried to track it down on hMailServer (./prgram/steps/mail/check_recent.inc) and found out that ...
$IMAP->messagecount(NULL, 'RECENT', TRUE)
... already toggles the recent flag. It meets the condition ...
if($recent_count = $IMAP->messagecount(NULL, 'RECENT', TRUE))
... but when creating the $header object by ...
$header = $IMAP->get_headers($id, NULL, FALSE);
... $header->recent ...
... results in NULL or FALSE, because the recent flag was already toggled before.
At the end of all the condition ...
... fails and the list is not updated.
I hope you can follow this steps!