imap-rs-tls
rustls-based secure transport for the imap-rs
library.
This is the infrastructure layer of the hexagonal imap-rs workspace. It
establishes encrypted IMAP connections and returns a ready-to-use
imap-rs-client session.
Features
- Pure-Rust TLS: uses
rustls(viatokio-rustls) exclusively — no OpenSSL, no native-tls, no C FFI. - Implicit TLS (
connect_tls, port 993) and STARTTLS upgrade (connect_starttls, port 143). - Security-first STARTTLS: capabilities are re-fetched inside the encrypted channel; pre-TLS server-asserted capabilities are never trusted.
- Timeout guards on TCP connect, TLS handshake, and pre-TLS exchanges to resist slowloris-style hangs.
Usage
[]
= "0.2"
use connect_tls;
# async
Most users should depend on the umbrella
imap-rscrate, which re-exports this crate asimap_rs::tls.
License
MIT