Opened 6 years ago

Closed 5 years ago

#1484169 closed Bugs (worksforme)

Faulty message count after renaming default folders.

Reported by: simbolo Owned by:
Priority: 4 Milestone:
Component: PHP backend Version: 0.1-beta2
Severity: normal Keywords: folder names message count
Cc:

Description

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.

Change History (2)

comment:1 Changed 6 years ago by simbolo

  • Priority changed from 5 to 4

How to reproduce the error:
Install 0.1-beta2 like normal, and get it operational with your server, otherwise leaving all settings as per factory.

Change the following lines in 'main.inc.php' in the config directory:

From: $rcmail_configsent_mbox? = 'Sent';
To: $rcmail_configsent_mbox? = 'Sent Items';

From: $rcmail_configdefault_imap_folders? = array('Inbox', 'Drafts', 'Sent', 'Junk', 'Trash');
To: $rcmail_configdefault_imap_folders? = array('Inbox', 'Drafts', 'Sent Items', 'Junk', 'Trash');

Next, login to RC with an account that is new, and has no email messages etc. Send another user an email once logged in.

Note that the Sent Items folder will become bold and unread count of (1). Delete that message, and note that Deleted Items folder now has an unread count of (1) - permanently delete the message will not then update the message count.

This problem is Fixed when changing folder names back to 'Sent' instead of 'Sent Items'.

comment:2 Changed 5 years ago by thomasb

  • Component changed from Client to PHP backend
  • Resolution set to worksforme
  • Status changed from new to closed

Cannot reproduce this with the latest trunk.

Note: See TracTickets for help on using tickets.