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.
Yes, i trying to develop a new zimlet, i'm using doDrop method, but what classes to use for move conversation i don't know?
Please help me, or prompt where it is possible to take the good documentation for development zimlet?
My_Zimlet_Add.prototype.doDrop = function(obj) {
if (obj.TYPE == "ZmConv") {
var conv = new ZmConv(this._appCtxt, obj.id, this);
//
//How to move this conversation from "inbox" to a folder "MyFolder"
//"MyFilder" is exist
//
}
};
I wont on event doDrop pack some information of these conversation in soap package and send this package to listen service and this conversation copy to another folder .
var soapDoc = AjxSoapDoc.create("ConvActionRequest", "urn:zimbraMail");
var actionNode = soapDoc.set("action");
actionNode.setAttribute("op", "move");
actionNode.setAttribute("l", folder.id);
actionNode.setAttribute("id", conv.id);
actionNode.setAttribute("tcon", "-tjs");
var command = new ZmCsfeCommand();
var top = command.invoke({soapDoc: soapDoc, asyncMode: true});