Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-2009, 09:05 AM
New Member
 
Posts: 3
Default [SOLVED] Problem when displaying messages on home page

Hi, I tried to set a home page in Zimbra using portlets with the com_zimb_html zimlet, but there is some trouble with the display of my unread messages.

To show only unread messages, I get the instance of the MailboxManager - MailboxManager.getInstance() - then I get the list of MailItems in the Inbox folder of his mailbox, testing the isUnread() value of each MailItem.

This works fine in the first place, but when I read a message (from the Mail tab), and refresh my home page, it displays exactly the same number of messages as before. The refresh works because if I send a new mail to my user, the home page displays it in the unread messages, but every other mail I read are still here : the only way I have to show the right number of unread messages is to restart the instance of Zimbra...(it does not work if I juste clear cache or cookies of my browser).

Does anybody knows how to refresh my home page and getting the right value ? Thx.



I do a :
mbx.purge(MailItem.TYPE_MESSAGE);
(where mbx is an instance of my mailbox).

Last edited by Fagnain; 04-27-2009 at 07:35 AM.. Reason: Solved
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.