Saving msg file

8 views
Skip to first unread message

MH

unread,
Nov 29, 2014, 7:06:21 AM11/29/14
to jod...@googlegroups.com
Hi, I need to save to .msg file each received email using the pop3 client. Do you know a library that could be combined with the common api or fluent api so I can achieve this?
Many thanks in advance.
MH

jodder

unread,
Nov 29, 2014, 6:50:36 PM11/29/14
to jod...@googlegroups.com
Sorry, I am not aware of any such tool. Maybe someone else here will know ;)

BloodySmartie

unread,
Nov 30, 2014, 8:44:15 AM11/30/14
to jod...@googlegroups.com
I don't know the .msg format, but if it's equal to the .eml format then you can save it using 
message.writeTo();
which you can pass a FileOutputStream as parameter. I hope this helps.

Best wishes,

David

jodder

unread,
Nov 30, 2014, 12:55:57 PM11/30/14
to jod...@googlegroups.com

Unfortunately, MSG is binary format used by microsoft, afaik; but like BloodySmartie said, you might go with the EML, that is universal text format - and Outlook should be able to read it as well.

I will add writeTo() method to our ReceivedEmail wrapper :)

Thank you!
Reply all
Reply to author
Forward
0 new messages