MimeKit is a mature, high-performance .NET library for creating, parsing, and manipulating MIME messages (email). It provides comprehensive support for all standard MIME structures (multipart, message/rfc822, content-transfer encodings), internationalized headers (RFC 2047/2231), and email security features including S/MIME, OpenPGP, DKIM, and ARC signing/verification. The library also includes a full HTML5 tokenizer, TNEF (Outlook Transport Neutral Encapsulation Format) reader, text format converters (HTML, flowed, plain), and a stream filter pipeline for encoding/decoding and line-ending normalization. The codebase is well-architected with clean abstractions (visitor pattern, filter chain, encoder/decoder interfaces), extensive unit tests, and benchmarks demonstrating 25x–75x faster parsing than competing .NET MIME libraries. It is distributed as NuGet packages (MimeKit, MimeKitLite) and is a .NET Foundation project. The repository also includes sample applications for Windows Forms, iOS, and Android, and a DKIM verifier sample.
This is a PHP library for parsing MIME email messages conforming to RFC 822/2822/5322. It wraps the `mailparse` PECL extension to provide a clean, object-oriented API for extracting headers, plain text and HTML bodies, attachments, and embedded content from raw email data (file, string, or stream). The library features a middleware system for custom MIME part processing, configurable attachment filename conflict strategies (suffix, random, throw), charset decoding with an extensive alias map, and type-safe enums for body type and filename strategy. It is designed for use in webmail clients, email processing pipelines, and Postfix integration, with support for complex MIME structures including multipart/alternative, inline images, and nested RFC822 messages. The test suite includes over 30 real-world email fixtures covering edge cases, making the library robust enough for production use.