Thanks for your help.
So now I'm able to:
- Import Message with REST API
- Find message ID with SearchRequest SOAP API
- Simulate "Edit as New" with GetMsgRequest SOAP API with returns me the Message Content in XML
But Now I call SaveMsgRequest with XML returned by GetMsgRequest (as Classic UI do ?)
And I have the following exception:
com.zimbra.cs.mailbox.MailServiceException: cannot modify immutable object
I guess I can't overwrite my imported message :/
Is there a flag to force overwrite?
Do I need to create a new message by deleting messageID in SaveMsgRequest ? (I try this but I lost all my attachments :/)
Note: I want to avoid creating a new message by giving a 2nd time all attachments I already import in my 1st request.
Let me know if you need further information.
Just to remind my original request: I want to import a message as Draft by giving an EML or MimeMessage object.
Regads,
Tglenard
So now I'm able to:
- Import Message with REST API
- Find message ID with SearchRequest SOAP API
- Simulate "Edit as New" with GetMsgRequest SOAP API with returns me the Message Content in XML
But Now I call SaveMsgRequest with XML returned by GetMsgRequest (as Classic UI do ?)
And I have the following exception:
com.zimbra.cs.mailbox.MailServiceException: cannot modify immutable object
I guess I can't overwrite my imported message :/
Is there a flag to force overwrite?
Do I need to create a new message by deleting messageID in SaveMsgRequest ? (I try this but I lost all my attachments :/)
Note: I want to avoid creating a new message by giving a 2nd time all attachments I already import in my 1st request.
Let me know if you need further information.
Just to remind my original request: I want to import a message as Draft by giving an EML or MimeMessage object.
Regads,
Tglenard
Statistics: Posted by tglenard — Tue Dec 19, 2023 3:35 pm