Exemplo n.º 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
            });
        }
Exemplo n.º 2
0
        public static RxMailMessage CreateFromStream(Stream EmailStream)
        {
            MimeReader mimeDecoder = new MimeReader();

            return(mimeDecoder.GetEmail(EmailStream));
        }
Exemplo n.º 3
0
 public static RxMailMessage CreateFromStream(MimeReader mimeDecoder, Stream EmailStream)
 {
     return(mimeDecoder.GetEmail(EmailStream));
 }
Exemplo n.º 4
0
 public static RxMailMessage CreateFromFile(MimeReader mimeDecoder, string sEmlPath)
 {
     return(mimeDecoder.GetEmail(sEmlPath));
 }