How can I fetch or load an unread zmMailMsg?
I'm developping a zimlet to save emails on my company's servers.
There are several options, allowing to keep some attachments, change the name of the files, ...
It works great when the emails being saved are read, but when a ZmMailMsg is unread, I can't access some of it's propertys I need, like the sentDate or the attachments for example.
So I'm trying to force the loading of the unread emails when they are dropped on my zimlet.
I tried "load" and "fetch" methods from the ZmMailMsg class, without success.
Below is the kind of code I use:
The result is that the Zimbra interface gets frozen and finally a message appears, saying I can cancel the request.
In Firebug I see the SOAP Request with the result, but it seems the callback is never called.
What's wrong with my call?