ews-java-api icon indicating copy to clipboard operation
ews-java-api copied to clipboard

Question: API support for saving a PostItem with a `.msg` attachment, including creation of the `.msg` bytes?

Open ryandm opened this issue 11 years ago • 5 comments

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?

ryandm avatar Jan 08 '15 19:01 ryandm

Sorry! I just realized this needs more detail. Updating the initial comment accordingly..

ryandm avatar Jan 08 '15 20:01 ryandm

Anyone know the answer to this? Or any hints as to whom/where I might ask to be able to make progress on this?

ryandm avatar Jan 16 '15 19:01 ryandm

(Would also appreciate a reply of the form that this isn't possible right now.)

ryandm avatar Jan 26 '15 19:01 ryandm

maybe you can also post this on stackoverflow under [ewsjavaapi] label. Regarding your problem isn´t this just about replying/forwarding a mail?

serious6 avatar Jan 27 '15 08:01 serious6

Because I haven't learned of any solution to this, I've moved on to trying other approaches. Closing.

ryandm avatar Feb 27 '15 07:02 ryandm