Opened 5 years ago

Closed 5 years ago

#1484879 closed Feature Patches (wontfix)

Unread counters in folder list updated only after a delay

Reported by: the_glu Owned by: thomasb
Priority: 3 Milestone: 0.2-alpha
Component: User Interface Version: 0.1-stable
Severity: normal Keywords:
Cc:

Description

The problem : When I navigate with roundcube (reading a mail,...)(when I change the main page..), it's take a small delay to show the unread informations in the folder list.

In the code, it's shouldn't happend, but there is a small confusion with UNSEEN and RECENT ;)

The solution : This patch :

Index: roundcubemail/program/include/main.inc
===================================================================
--- roundcubemail/program/include/main.inc	(révision 1190)
+++ roundcubemail/program/include/main.inc	(copie de travail)
@@ -1788,7 +1788,7 @@
       }
 
     // add unread message count display
-    if ($unread_count = $IMAP->messagecount($folder['id'], 'RECENT', ($folder['id']==$mbox_name)))
+    if ($unread_count = $IMAP->messagecount($folder['id'], 'UNSEEN', ($folder['id']==$mbox_name)))
       $foldername .= sprintf(' (%d)', $unread_count);
 
     // make folder name safe for ids and class names

Change History (2)

comment:1 Changed 5 years ago by thomasb

  • Owner set to thomasb

The unread count is updated AFTER the page load due to performance issues. Fetching the unread count from the imap server for all folders may take several seconds. This line should actually be removed completely. Have to investigate...

comment:2 Changed 5 years ago by alec

  • Resolution set to wontfix
  • Status changed from new to closed

Intended behaviour. Refered line not exists.

Note: See TracTickets for help on using tickets.