Bug 62701 - Introduce an API to generate .msg files
Summary: Introduce an API to generate .msg files
Status: NEEDINFO
Alias: None
Product: POI
Classification: Unclassified
Component: HSMF (show other bugs)
Version: unspecified
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-10 05:28 UTC by Ramesh
Modified: 2018-09-29 11:37 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramesh 2018-09-10 05:28:30 UTC
POI supporting to reading a msg files but not providing any API to write or generate MSG files from java code. We are expecting to introduce an API to generate .MSG files
Comment 1 Nick Burch 2018-09-10 10:35:55 UTC
You should find that many of the low-level records support writing out, which ought to help. Creating a whole new file is probably a lot of work to start with, I'd suggest you focus on just the change case to begin with (updating the various properties and streams in sync), then simpler add/remove (with references and IDs and stuff), then if you're still keen push for full creation!

See http://poi.apache.org/devel/guidelines.html for some help on getting started contributing to Apache POI. We'll look forward to your patches / pull requests!
Comment 2 Ramesh 2018-09-25 08:56:09 UTC
I could able to create .msg files using java code with plain text body but wants to extend the same to support HTML content as well.
To make HTML support, what are things required so that i can upload the patch if it is done from my end.
A small piece of code that am using right now.

if(body!=null) { topLevelChunk.setProperty(new PropertyValue(MAPIProperty.BODY, FLAG_READABLE | FLAG_WRITEABLE, StringUtil.getToUnicodeLE(body))); }

Any help here is greatly useful and solves lot of problems