There is no direct support for reading email messages in .NET. You have to hack your own (in a day or two you will probably be able to process 95% of regular eml emails, after several months of hard work you will be able to process the remaining 5%). A complete email analysis means the correct handling of international characters, attachments, several encoding schemes, attachments, email messages sent as attachments, encrypted and signed emails to be able to handle common errors of popular email clients, etc.
There are two common email file formats:
EML
, * nix, . Outlook Express Thunderbird / eml. .NET SmtpClient PickupDirectory, . EML RFC 2045, 2046, 2047, 2048, 2049, 2822.
eml. Rebex Secure Mail ( Google).
using Rebex.Mail;
using Rebex.Mime.Headers;
MailMessage message = new MailMessage();
message.Load("c:\\message.eml");
Console.Write(message.From);
Console.Write(message.To)
foreach (Attachment attachment in message.Attachments)
{
Console.WriteLine ("Saving '{0}' ({1}).",
attachment.FileName, attachment.MediaType);
attachment.Save (attachment.FileName);
}
.
MSG
, Outlook. Microsoft . #, . , .