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

Support for exporting to EML w/attachments #26

Open
duckmaestro opened this issue Jun 18, 2020 · 5 comments
Open

Support for exporting to EML w/attachments #26

duckmaestro opened this issue Jun 18, 2020 · 5 comments

Comments

@duckmaestro
Copy link

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
Copy link
Owner

Dijji commented Jun 18, 2020

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
Copy link
Contributor

halueda commented Jun 19, 2020

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
Copy link

I'm not sure which library is

http://www.mimekit.net/

@rezaahmadid
Copy link

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

@Sicos1977
Copy link

Sicos1977 commented Feb 3, 2022

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

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

6 participants