Expand description
RFC 5322 email message parser and builder.
Provides two main operations:
parse_email: Parse raw RFC 5322 message bytes into a structuredParsedEmailbuild_message: Construct RFC 5322 message bytes from anOutgoingEmail
§References
- RFC 5322 (Internet Message Format)
- RFC 2045 (MIME Part One — body format, Content-Transfer-Encoding)
- RFC 2046 (MIME Part Two — media types, multipart boundaries)
- RFC 2047 (MIME Part Three — encoded words in headers)
- RFC 2183 (Content-Disposition)
- RFC 2231 (MIME parameter encoding)
- RFC 6532 (Internationalized email headers)
Re-exports§
pub use error::Error;pub use types::Address;pub use types::BuiltMessage;pub use types::DateTime;pub use types::OutgoingAttachment;pub use types::OutgoingEmail;pub use types::ParsedAttachment;pub use types::ParsedEmail;
Modules§
- error
- Typed error enum for email message parsing and building.
- types
- Public API types for parsed and outgoing email messages.
Functions§
- build_
message - Builds an RFC 5322 message from an
OutgoingEmail. - parse_
email - Parses raw email message bytes into a structured representation.
- parse_
headers_ only - Parses only the headers of a raw email message, skipping body/MIME processing.