Dijji / XstReader

Xst Reader is an open source viewer for Microsoft Outlook’s .ost and .pst files, written entirely in C#. To download an executable of the current version, go to the releases tab.
Microsoft Public License
513 stars 72 forks source link

Support for exporting to EML w/attachments #26

Open duckmaestro opened 4 years ago

duckmaestro commented 4 years ago

Related to #21 , I suggest EML format could be useful because it natively supports attachments within the EML file. I am currently in the process of combining old e-mail archives (all previously exported to EML) with what will be new additions to the archives. I think this tool is great, but having attachments in the EML is definitely handy and easier to manage from an archiving purpose.

Dijji commented 4 years ago

I'm definitely up for doing this, but I've never been able to identify a standard format for EML that would support it. What standard for the EML format are you using? Do you know what other programs will read it?

halueda commented 4 years ago

eml format is an oldest mail format that almost all mailer can read/write it.

https://en.wikipedia.org/wiki/Email#Filename_extensions says:

Used by many email clients including Novell GroupWise, Microsoft Outlook Express, Lotus notes, Windows Mail, Mozilla Thunderbird, and Postbox.

You can also see:

The files contain the email contents as plain text in MIME format, containing the email header and body, including attachments in one or more of several formats.

The format of attachment in MIME is almost same as multipart format.

MIME multipart standard is defined in RFC2046

But, I don't think you need to read these standard because C# should have a library to handling ordinary mail message/MIME message, though I'm not sure which library is.

taspeotis commented 4 years ago

I'm not sure which library is

http://www.mimekit.net/

rezaahmadid commented 3 years ago

Export in EML format is very useful because it makes file transfer very easy and also has attachments in it

Sicos1977 commented 2 years ago

In the past I have written something to convert EML to MSG format so it would be easy to make this work the other way around. It already uses mimekit for it.

https://github.com/Sicos1977/MsgKit/blob/master/MsgKit/Converter.cs

I also have written an MSGReader it can read MSG files without needing Outlook so you can use that one as a base about how to read the MSG file and convert it to EML.

https://github.com/Sicos1977/MSGReader