mail-parser by stalwartlabs
Fast and robust e-mail parsing library for Rust
About mail-parser
From the project's README at github.com/stalwartlabs/mail-parser. Lightly cleaned for readability; for the full source see the upstream repo.
[](https://crates.io/crates/mail-parser) [](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml) [](https://docs.rs/mail-parser) [](http://www.apache.org/licenses/LICENSE-2.0)
mail-parser is an e-mail parsing library written in Rust that fully conforms to the Internet Message Format standard (RFC 5322), the Multipurpose Internet Mail Extensions (MIME; RFC 2045 - 2049) as well as many other internet messaging RFCs.
It also supports decoding messages in 41 different character sets including obsolete formats such as UTF-7. All Unicode (UTF-) and single-byte character sets are handled internally by the library while support for legacy multi-byte encodings of Chinese and Japanese languages such as BIG5 or ISO-2022-JP is provided by the optional dependency encodingrs.
In general, this library abides by the Postel's law or Robustness Principle which states that an implementation must be conservative in its sending behavior and liberal in its receiving behavior. This means that mail-parser will make a best effort to parse non-conformant e-ma
Health score breakdown
6-dimension composite. See methodology for formula and weights.
Adoption signals
Real-world usage data, pulled from each registry. The bigger the numbers, the more battle-tested the project.
| Signal | Value | Source |
|---|---|---|
| GitHub stars | 435 | github.com/stalwartlabs/mail-parser |
| GitHub forks | 59 | github.com/stalwartlabs/mail-parser |
| CRATES downloads (last month) | 592k | mail-parser |
Release & maintenance
Is this project actively maintained, or about to die? Check the recency of last commit and last release.
| Project age | 4.6 years | since Oct 2021 |
| Last commit | 5 days ago | May 2, 2026 |
| Releases shipped | 27 | last: 9 months ago |
| Security policy | SECURITY.md | declared by maintainers |
| Funding links | 2 | declared by maintainers |
Self-hosting cost across providers
Detected requirements: 4GB RAM, 40GB disk minimum. Cheapest plan per provider that meets the requirement.
| Provider | Plan | Specs | Monthly | |
|---|---|---|---|---|
| hetzner | CAX11 | 2c · 4GB · 40GB | $4.13 USD | Deploy → |
| vultr | VC2 | 1c · 1GB · 25GB | $5 USD | Deploy → |
| linode | Nanode 1GB | 1c · 1GB · 25GB | $5.12 USD | Deploy → |
| digitalocean | Basic Regular 1GB | 1c · 1GB · 25GB | $6 USD | Deploy → |
Ready to self-host mail-parser?
Spin up a hetzner CAX11 (4GB RAM, 40GB disk) for $4.13/mo and follow the project's official install docs.
Data last refreshed May 7, 2026.
Similar open-source projects
Projects in our directory that replace the same SaaS or share topics with mail-parser.