email-message-wire
RFC822 and MIME parsing and rendering for email-message.
This crate has no optional feature flags.
Quick Start
use ;
Scope Contract
- Parses RFC822 messages into the typed
email_message::Messagemodel. - Renders typed messages as RFC822 and MIME wire data.
- Handles MIME structure, attachment encoding, RFC2047 encoded words, and related transport-safe formatting.
- Enables
email-message'smimefeature because full MIME-tree rendering requiresMimePart.
Key Behaviors
render_rfc822stripsBccby default so messages are safe for SMTP or raw delivery.render_rfc822_withandRenderOptionsallow intentional non-default policies such as retainingBcc.- MIME attachments are base64-encoded and wrapped to RFC-compliant line lengths.
- Typed
DateandMessage-IDvalues round trip through the publicMessageAPI. - Attachment references must be resolved to bytes before rendering.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.