Hey there
In a few words: Lorenzo's perfect snippet lacks one feature though... Attachments! That's why I'm here now... :-(
In soap.txt:
Code:
<SendMsgRequest [suid="{send-uid}"] [needCalendarSentByFixup="0|1"] [noSave="0|1"]>
<m [origid="..." rt="r|w"] [idnt="{identity-id}"]>
<e t="{type}" a="{email-address}" p="{personal-name}" [add="1"]/>+
<su>{subject}</su>*
[<irt>{Message-ID header for message being replied to}</irt>]
<mp ct="{content-type}">
<content>...</content>
</mp>
<attach [aid="{attach-upload-id}"]>
[<m id="{message-id}"/>]*
[<mp mid="{message-id}" part="{part-id}"/>]*
[<cn id="{contact-id}"/>]*
</attach>
</m>
</SendMsgRequest> I found the part I needed, I then started investigating what gives me the IDs I need here...
Well, I'm pretty lost with "which does what, and where"...
Have you ever published some of your internal dev schematics for the overall architecture (UML or something like that)? That would be pure gold for me...
As far as I can see, I'm supposed to upload (how do I call the dialog?) a file (found various js files about the subject, but even there, kinda lost...) in zimbra on the dedicate fileuploadservlet. Then I should receive an attachment id (where?), and then I'll proceed in setting it inside the soapDoc.set("attach"...) call to attach whatever I want to the message.
Is anybody so kind to address me in the right direction? I like to get dirty and wet (ehm... nevermind!): once on the right route, I'd be independent in proceeding further on, but this time it's a ocean too huge for me (at least for the time slices I'm dedicating to the project, considering that this is NOT my default job area...)