Skip to main content

Crate daaki_message

Crate daaki_message 

Source
Expand description

RFC 5322 email message parser and builder.

Provides two main operations:

§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.

Type Aliases§

Result
Crate-level Result alias using Error.