Expand description
Proton Mail IMAP client library
An interface to interact with Proton Mail using Proton Bridge. Connects over STARTTLS with self-signed certificate support.
§Access control
ProtonClient uses a typestate pattern to separate read and write
operations at compile time:
ProtonClient<ReadOnly>– list, fetch, search (default)ProtonClient<ReadWrite>– all of the above plus move, flag, archive, and unmark
Returns parsed Email structs from the email_extract crate.
Structs§
- A fully parsed email with extracted entities and metadata
- Imap
Config - IMAP connection configuration for Proton Bridge
- Proton
Client - IMAP client for Proton Mail via Proton Bridge.
- Read
Only - Marker: read-only access. Write methods are not available.
- Read
Write - Marker: read-write access. All methods are available.