imap_session 🦀: Core Async IMAP Session Management for Rust
imap_session is the core library of the imap.rs workspace. It provides a robust, idiomatic Rust wrapper built on top of async_imap for managing and performing operations on a single, secure IMAP session.
This crate handles the complexities of connection configuration, TLS handshake, and authentication, making it suitable for short-lived or singular IMAP tasks.
📦 Installation
To use imap_session in your project, add the following to your Cargo.toml:
[]
= "0.1"
= { = "1", = ["full"] }
= { = "0.5.0", = false, = [
"tokio",
"runtime-tokio",
"futures-util",
] }
🚀 Usage Example (Single Session)
Use imap_session when you only need to open, use, and close a single connection, typically for short-lived tasks like fetching a single piece of data or running a simple command.
use TlsConnector;
use ;
use TcpStream;
async
📄 License
This project is licensed under: