Jump to content


Show Unread/Read Counts on Tabs

staff response

  • Please log in to reply
1 reply to this topic

#1 gnurob


    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 12 March 2017 - 05:48 PM

Using IMAP slows things down a bit (seriously, I'm dying for you to implement local caching like SuiteCRM, but otherwise a bang up job, love ya)... so, why not add unread/read counts to the e-mail inbox tabs to save unnecessary switching.



#2 X2Raymond


    Advanced Member

  • Administrators
  • 972 posts
  • LocationSanta Cruz, CA

Posted 13 March 2017 - 10:07 AM

Having the unread count on the inbox tabs sounds like a great idea, that would be extremely convenient. I'll see about this improvement for the upcoming release.


Regarding IMAP caching, there is actually caching implemented, but it may not be cached long enough in this case. Currently, they will only be cached for 10 minutes from last access. This can be configured with the IMAP_CACHE_MSG_TIMEOUT constant in protected/modules/emailInboxes/models/EmailInboxes.php. The email headers (and bodies once retrieved) are kept in a file cache in protected/runtime/cache2. You can switch to using a distributed cache like Redis if desired by updating the cache class used. This is configured in the 'cache2' config block in protected/config/main.php, see http://www.yiiframew...1.1/CRedisCachefor more detail.

Also tagged with one or more of these keywords: staff response

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users