daaki-message 0.1.0

RFC 5322 email message parser and builder
Documentation
//! RFC 5322 email message parser and builder.
//!
//! Provides two main operations:
//! - [`parse_email`]: Parse raw RFC 5322 message bytes into a structured [`ParsedEmail`]
//! - [`build_message`]: Construct RFC 5322 message bytes from an [`OutgoingEmail`]
//!
//! # 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)

pub mod error;
pub mod types;

mod builder;
mod parser;

pub use builder::build_message;
pub use error::Error;
pub use parser::{parse_email, parse_headers_only};
pub use types::{
    Address, BuiltMessage, DateTime, OutgoingAttachment, OutgoingEmail, ParsedAttachment,
    ParsedEmail,
};

/// Crate-level `Result` alias using [`Error`].
pub type Result<T> = std::result::Result<T, Error>;