Skip to main content

Crate protonmail_client

Crate protonmail_client 

Source
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§

Email
A fully parsed email with extracted entities and metadata
ImapConfig
IMAP connection configuration for Proton Bridge
ProtonClient
IMAP client for Proton Mail via Proton Bridge.
ReadOnly
Marker: read-only access. Write methods are not available.
ReadWrite
Marker: read-write access. All methods are available.

Enums§

Error
Flag
An IMAP message flag.
Folder
An IMAP mailbox folder.

Type Aliases§

Result