Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! #54

Open
bbottema opened this issue Jul 27, 2020 · 3 comments
Open

Hi! #54

bbottema opened this issue Jul 27, 2020 · 3 comments

Comments

@bbottema
Copy link

bbottema commented Jul 27, 2020

Hi Cédric, I just wanted to drop bye and say thanks for developing this library!

I don't know if you realized, but your library might just be about the only open source java library out there dealing with creating .msg files. I'm maintaining Simple Java Mail and have been on the lookout for such a library to integrate for some time, but so far no luck.

I think your library would get a lot more exposure if my users would be able to leverage it through my library's api.

So what are your plans for this wonderful project? Do you have something like a roadmap in mind (I use GitHub Issues for this myself)? I guess you need to cover some more basics first, like embedded images, html body, then perhaps in the future S/MIME, DKIM?

@ctabin
Copy link
Owner

ctabin commented Jul 28, 2020

@bbottema
Hi Benny, thanks for your message.

Actually, I do not have any plan to enhance this library, at least for now. I already dug a lot especially to handle HTML messages, but I couldn't make it work, it seems that MS encodes rich text with RTF which is... well, really painful.
So I'm sorry it's probably not the answer you intended to get, but since digging in the msg hexadecimal format is an expensive time-consuming effort, I don't have this time (at least in a foreseeable future).

BTW, I'm open for PR if anyone want to improve this library, that would be awesome.

Best,
Cédric

@bbottema
Copy link
Author

bbottema commented Jul 29, 2020

I couldn't make it work, it seems that MS encodes rich text with RTF which is... well, really painful.

All the Outlook messages I've encountered do indeed have RTF instead of HTML body, but apparently Outlook also supports a native HTML body somehow, which actually surfaced a bug in one of my other libraries, Outlook Message Parser.

That combined with yet another library I maintain, rtf-to-html, this could be a neat way around encoding RTF altogether. It reliably produces proper HTML which you could encode instead (if that's easier at all to begin with).

Just thinking out loud here...

@jbiglangawa
Copy link

I second this! Thanks for making this! I had trouble using poi-scratchpad thinking it can generate .msg but in the end, it wasn't able to. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants