Faulty message count after renaming default folders.
|Reported by:||simbolo||Owned by:|
|Severity:||normal||Keywords:||folder names message count|
Standard settings define 'Sent', 'Trash', 'Junk' as default folders, automatically created for users on login; great in an IMAP environment.
In a particular situation, the enduser also uses Microsoft Outlook in the office, and roundcube when on the go. Because Outlook can't junk/trash folder names other than its own hardcoded "Junk E-Mail", "Deleted Items", and "Sent Items" - it also creates those folders, resulting in 2 trash folders, 2 junk folders, and 2 sent folders - just with different names.
To solve this, main.inc.php, was edited to change the default names to match those used in Outlook, and these names were made the protected default names under each heading. For example:
$rcmail_configjunk_mbox? = 'Junk E-mail';
Once the folder names match, Outlook will not create it's own.
BUG: Roundcube will correctly identify each folder itself; if user send a message the "Sent Items" folder will become bold with "(1)" indicating new messages. Even though the message status in is unread when in that folder. When the "Deleted Items" folder is highlighted, the command link at the bottom for "Empty" is still disabled. The faulty message count remains even after logout/login.
If I go into the "sent items" folder, and delete the message - the unread count for that folder remains at 1, despite being empty.