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

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 09-20-2007, 06:03 AM
Junior Member
 
Posts: 9
Default Transfer conversation?

Please can anybody say to me
how to transfer the conversation from "Input" folder to other folder?

Last edited by vit_do82; 09-20-2007 at 06:19 AM..
Reply With Quote
  #2 (permalink)  
Old 09-20-2007, 07:06 AM
Moderator
 
Posts: 2,207
Default

Are your trying to develop a new zimlet that is able to move a conversation from one folder to another one ?

(At first I understood you were trying to move a conversation using the web interface.)
Reply With Quote
  #3 (permalink)  
Old 09-20-2007, 07:17 AM
Junior Member
 
Posts: 9
Default

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?

Last edited by vit_do82; 09-20-2007 at 07:38 AM..
Reply With Quote
  #4 (permalink)  
Old 09-20-2007, 08:51 AM
Junior Member
 
Posts: 9
Default

What classes to use?

Code:
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
              //
        } 
};

Last edited by vit_do82; 09-25-2007 at 12:32 AM..
Reply With Quote
  #5 (permalink)  
Old 09-20-2007, 08:55 AM
Moderator
 
Posts: 2,207
Default

My question might sound stupid but why developping a zimlet to do something that is already included (by two ways) in the WebUI ?
Reply With Quote
  #6 (permalink)  
Old 09-20-2007, 09:06 AM
Junior Member
 
Posts: 9
Default

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 .
Reply With Quote
  #7 (permalink)  
Old 09-25-2007, 12:32 AM
Junior Member
 
Posts: 9
Default

This is my code.
Code:
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});
Reply With Quote
  #8 (permalink)  
Old 09-25-2007, 12:35 AM
Junior Member
 
Posts: 9
Default

But how to check up mail (to update page inbox) ?
Reply With Quote
  #9 (permalink)  
Old 09-26-2007, 08:31 AM
Junior Member
 
Posts: 9
Default

This code transfers conversation with inbox to a folder folder1, list restart
Code:
this._appCtxt._list.moveItems([conv1], folder1, null);

Last edited by vit_do82; 09-26-2007 at 11:45 PM..
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.