Not sure if this has been addressed yet. The issue is that when
Roundcube gets an unread count from the IMAP server it's only specifying
that messages must be unread, not that they must not have been deleted.
So if the messages have both the unread and deleted flags they still
show up in the count even after they have been deleted from the trash can.
The following change to program/lib/imap.inc (CVS snapshot from a week or so ago) fixes it:
*** 1521,1527 **** }
function iil_C_CountUnseen(&$conn, $folder){ ! $index = iil_C_Search($conn, $folder, "ALL UNSEEN"); if (is_array($index)){ $str = implode(",", $index); if (empty($str)) return false; --- 1521,1527 ---- }
function iil_C_CountUnseen(&$conn, $folder){ ! $index = iil_C_Search($conn, $folder, "ALL UNSEEN UNDELETED"); if (is_array($index)){ $str = implode(",", $index); if (empty($str)) return false;