Question: API support for saving a PostItem with a `.msg` attachment, including creation of the `.msg` bytes?
Roughly, my goal is to be able to write something like this:
PostItem post = new PostItem(service);
GeneritItemAttachment<PostItem> attachment =
post.getAttachments().getItemAttachment(PostItem.class); // s:PostItem:EmailMessage: maybe?
attachment.getTItem().setBody(someBody);
attachment.getAttachments().addFileAttachment(someFileName, someBytes);
post.save(WellKnownFolderName.Inbox);
With the effect being: A message gets saved in the Inbox with a .msg format attachment. The .msg format attachment itself has an attachment as well as the specified body etc.
Is this possible?
Sorry! I just realized this needs more detail. Updating the initial comment accordingly..
Anyone know the answer to this? Or any hints as to whom/where I might ask to be able to make progress on this?
(Would also appreciate a reply of the form that this isn't possible right now.)
maybe you can also post this on stackoverflow under [ewsjavaapi] label. Regarding your problem isn´t this just about replying/forwarding a mail?
Because I haven't learned of any solution to this, I've moved on to trying other approaches. Closing.