Results 1 to 5 of 5

Thread: Getting unread message count in zimlet

  1. #1
    Join Date
    Mar 2011
    Posts
    39
    Rep Power
    4

    Question Getting unread message count in zimlet

    Hi!

    How can I obtain unread message count in Inbox folder in a Zimlet?

    And additionally, how can I switch from the current "tab" to mail compose view simply? One way is using the URL, but this reloads the whole page.

    Thanks,
    Miha.
    --
    Zimbra 7.1.2 GA NETWORK

  2. #2
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    for the the unread mail count in the inbox, you can do a search and count the result.

    for the compose view, here is a thread with an example :
    http://www.zimbra.com/forums/zimlets...ted-email.html

  3. #3
    Join Date
    Mar 2011
    Posts
    39
    Rep Power
    4

    Default

    Quote Originally Posted by tdesorbaix View Post
    for the the unread mail count in the inbox, you can do a search and count the result.
    Thanks! Is there an example on how do to a unread email search in inbox?

    Perhaps like so?
    Code:
        appCtxt.getSearchController().search({
          query:      ou_filter,
          userText:   false,
          limit:      9999,
          types:      _types,
          noRender:   true,
          callback:   ou_callback
        });
    --
    Zimbra 7.1.2 GA NETWORK

  4. #4
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    I searched a bit and found a more efficient way to get the unread message count in inbox :
    appCtxt.getById(ZmFolder.ID_INBOX).numUnread

  5. #5
    Join Date
    Mar 2011
    Posts
    39
    Rep Power
    4

    Default

    Quote Originally Posted by tdesorbaix View Post
    I searched a bit and found a more efficient way to get the unread message count in inbox :
    appCtxt.getById(ZmFolder.ID_INBOX).numUnread
    Thank you very much!!

    Kind regards,
    Miha.
    --
    Zimbra 7.1.2 GA NETWORK

Similar Threads

  1. Opening new message dialog from Zimlet
    By gil.fernandes in forum Zimlets
    Replies: 7
    Last Post: 11-25-2013, 08:42 AM
  2. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  3. Emails bouncing with "Error Text: 401,'null'"
    By sholden in forum Zimbra Connector for Outlook
    Replies: 27
    Last Post: 08-20-2008, 04:59 PM
  4. Missing Stats Message Count / Message Volume
    By rhostager in forum Installation
    Replies: 15
    Last Post: 12-18-2007, 09:29 AM
  5. Inbox unread message count is wrong
    By dhallweb in forum Administrators
    Replies: 6
    Last Post: 08-26-2006, 01:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •