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 05-16-2011, 08:12 AM
Elite Member
 
Posts: 469
Default [SOLVED] SOAP command to send message from drafts ?

Does anyone know if there is a SOAP command available to send a message from the drafts folder ?

I would like to be able to use the fileuploadservlet to upload a message, save it to the drafts folder, then use the SOAP API to modify some of the properties on the message (such as the original ID if it is a reply/forward, etc.), then finally Send the message, and remove the Draft.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 06-14-2011, 02:36 AM
Elite Member
 
Posts: 469
Default

I opened a bug on this to see if I could get some official comment, and here is the response.

There is no direct way to do this, but there is a 3 step process to achieve it.


1. SaveDraftRequest - Get message id
or
For saved message use SearchRequest in Draft Folder get mail box id.


2. Send <GetMsgRequest> with message id.
get all data for the saved message.

3. send <SendMsgRequest> with data retrieved from <GetMsgResponse>


Actually, there should also be a 4th step,

4. send <ItemActionRequest> or <MsgActionRequest> to "delete" the draft
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.