Zimlet Email Processing
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.
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.
Originally Posted by jfavero
getHotMsg -- Returns the searched for message, or the newest message.
getFirstMsg -- Should be pretty obvious.
.msgs should contain the rest of the messages.
I have pulled the source code from SVN, however I still am having problems understanding how this all works.
I have a ZmConv (Conversation) object. How do I access the attachements, from/to addresses etc.
zmConv.firstMsg to get the first message, however this is undefined.
I got around it by only allowing the mail message to drag and drop.
I've just finished basically what you are trying to do.
<dragSource type="ZmMailMsg" />
If you read the wiki, I posted code to extract the email using REST commands.
The code on my wiki ends with the files on the web server, I was able to use php ftp class to move the files to the project folders on the windows server.
I'm on an intranet so I can get away with some of these things. I think I'd do it a bit differently if I were live on the net.