daaki-imap 0.1.0

An IMAP4rev1/IMAP4rev2 async client library
Documentation
//! `daaki` IMAP client library.
//!
//! An `IMAP4rev1` (RFC 3501) and `IMAP4rev2` (RFC 9051) async client
//! built on tokio and rustls. Single crate — parser, types, and connection in one place.

#![deny(unsafe_code)]

pub mod error;
pub mod types;

mod codec;
mod connection;

pub use connection::{
    IdleEvent, ImapConnection, SearchResult, SessionState, TcpKeepalive, TlsMode,
};
/// Re-export the canonical `Address` type from `daaki-message` so consumers
/// can use a single `Address` type across the IMAP, SMTP, and message crates
/// without manual field-by-field conversion.
pub use daaki_message::Address;
pub use error::Error;
pub use types::{ExpungeResult, MoveResult};

/// Result type alias for IMAP operations.
pub type Result<T> = std::result::Result<T, Error>;