Quote:
Originally Posted by jfavero I want to drap and drop an email from the Inbox into my Zimlet. The Object type I am getting a ZmConv. I actually expected to get the ZmMailMsg. Why is it be treated as such?? How do I get to the emal message and attachments to the email message? Also, is there way to convert the email message to an XML format for offline storage?? I want to take the entire email and attachments and store them to an offline storage area for archiving.
Thanx Joe |
ZmConv is the "Conversation" (ie, threaded mail messages) that was dragged over. ZmConv is actually derived from ZmMailItem item, which means you should be able to access it just like a regular message.
According to the notes in ZmConv.
js (if you haven't done a SVN checkout of the Zimbra tree, grab it. Javascript is surprisingly readable) the following messages on the conv will return the messages:
getHotMsg -- Returns the searched for message, or the newest message.
getFirstMsg -- Should be pretty obvious.
.msgs should contain the rest of the messages.
Note: I haven't tried this yet, but go ahead and give it a shot and let me know what you find. Also note that ZmMailItem consists of multiple parts, attachments, etc. That could be hairy, and you may want to look at the JSP taglib rather then pure javascript to see if that is a easier way to go about it.