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 Display Modes
  #1 (permalink)  
Old 10-07-2009, 12:26 AM
Senior Member
 
Posts: 63
Default How to refresh the number in () next from inbox

I create zimlet for automatic set mail to read.
I use soap for do this.

Quote:
var soapCmd = ZmItem.SOAP_CMD[typeOfItem] + "Request";
var itemActionRequest = {};
itemActionRequest[soapCmd] = {_jsns:"urn:zimbraMail"};
var request = itemActionRequest[soapCmd];
var action = request.action = {};
action.id = <MSGID>;
action.op = "read";
var params = {asyncMode: true, callback: null, jsonObj:itemActionRequest};

appCtxt.getAppController().sendRequest(params);
Note : typeOfItem ----> MSG for msg
----> CONV for conversation

I use this code for set mail to read ,
it's work but the number which is next from Inbox not change.

I don't know why.
Please let me know how to solve this problem.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0