mailpipe
A unified, high-level SMTP and IMAP email engine backend library for Rust, built on top of async-imap and lettre. It's the email backend that powers magpipe.
Features
- IMAP — Connect, authenticate, and manage sessions over TLS (port 993)
- SMTP — (coming soon)
- Async-first via Tokio
- Credentials are never stored — passwords are passed transiently at connection time
Installation
[]
= "0.1.1"
Usage
IMAP
use ImapConnector;
async
Custom port
let mut connector = new;
connector.port = 143;
Security
Passwords are accepted as a transient &str and are never stored on any struct. It is recommended to source credentials from environment variables or a secrets manager rather than hardcoding them.
let pass = var.expect;
connector.connect.await?;
Dependencies
| Crate | Purpose |
|---|---|
tokio |
Async runtime |
async-imap |
IMAP protocol implementation |
tokio-native-tls |
TLS encryption |
lettre |
SMTP (upcoming) |