Registry / utility / mailparse

mailparse

JSON →
library0.16.1rscratesunverified

A simple parser for MIME e-mail messages, extracting headers and body parts.

# Cargo.toml [dependencies] mailparse = "0.16.1"
INSTALL
IMPORT
SIG · MAILPARSE
M
mailparse
utilityrustv0.16.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse_mail
use mailparse::parse_mail;

Parses a raw MIME email message.

use mailparse::parse_mail; let mail = b"From: user@example.com\nSubject: Test\n\nHello, world!"; let parsed = parse_mail(mail).unwrap(); println!("Subject: {:?}", parsed.headers.iter().find(|h| h.get_key() == "Subject"));
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.16.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mailparse — cargo add mailparse · libregistry