Пример #1
0
        public static MessageModel RetreiveEmail(string path)
        {
            var mail = new MimeReader().GetEmail(path);

            return(new MessageModel
            {
                DateReceived = mail.DeliveryDate,
                From = mail.From.Address,
                To = mail.To.ToString(),
                Path = path,
                Subject = mail.Subject
            });
        }
Пример #2
0
        public static RxMailMessage CreateFromStream(Stream EmailStream)
        {
            MimeReader mimeDecoder = new MimeReader();

            return(mimeDecoder.GetEmail(EmailStream));
        }
Пример #3
0
 public static RxMailMessage CreateFromStream(MimeReader mimeDecoder, Stream EmailStream)
 {
     return(mimeDecoder.GetEmail(EmailStream));
 }
Пример #4
0
 public static RxMailMessage CreateFromFile(MimeReader mimeDecoder, string sEmlPath)
 {
     return(mimeDecoder.GetEmail(sEmlPath));
 }