Crate email

source ·
Expand description

Rust library to manage your emails.

The core concept of this library is to implement email actions and to expose them into backend-agnostic abstractions. This way, you can easily build email interfaces without caring about how to connect to an IMAP server or how to send an email via SMTP.

Here some key structures to better understand the concept of the library:

Backend and sender

pimalaya-email provides two main abstractions—a backend and a sender—as represented by their respective traits (Backend and Sender.)

  • A backend provides the ability to interact with an email server (e.g. IMAP or Maildir), by providing read/write operations on folders and messages.
  • A sender provides the ability to send emails. This is analogous to the functionality of e.g. the SMTP protocol.

pimalaya-email provides some default implementations of these traits, found in their respective modules.

Modules

  • Module dedicated to account management.
  • Module dedicated to backend management.
  • Module dedicated to email management.
  • Module dedicated to folder management.
  • Module dedicated to sender management.

Enums

  • The global Error enum of the library.

Traits

Type Aliases

  • The global Result alias of the library.