Skip to content
Email reply parser. Ported from https://github.com/crisp-im/email-reply-parser
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
appveyor.yml
build.bat
build.fsx

README.md

EmailReplyParser Build status NuGet Version

Email reply parser.

Package EmailReplyParser | Platforms .NET 4.6, .NET Standard 2.0

Quick .NET (C#) port of https://github.com/crisp-im/email-reply-parser with small amendments.

Usage

var email = EmailParser.Parse(emailContent);
// Amending the default header quote regex patterns with pattern for Outlook displaynames...
var otherEmail = EmailParser.Parse(otherEmail, RegexPatterns.QuoteHeadersRegex.Concat(new [] {new Regex( @"^\s*(From\s?:.+\s?(\[|\().+(\]|\)))", RegexOptions.Compiled)} ).ToArray());

foreach (var fragment in otherEmail.Fragments)
{
    Console.WriteLine(fragment.Content);
}

Original credits

You can’t perform that action at this time.