Crate email

Source
Expand description

Rust library to manage emails.

The main purpose of this library is to help people to build custom email interfaces without caring about how to connect to an IMAP server or how to send an email via SMTP.

This goal is achieved by exposing a Backend struct which is just a set of customizable features like adding a folder, listing envelopes or sending a message. You also have access to a BackendBuilder which helps to build a custom backend.

The library also exposes pre-configured backend features for Maildir, IMAP, Notmuch, SMTP and Sendmail.

See examples in the /tests folder.

§Backend features

§Folder

§Envelope

§Flag

§Message

Modules§

account
Module dedicated to account management.
autoconfig
Account discovery
backend
Backend
config
date
email
Module dedicated to email management.
envelope
Module dedicated to email envelopes.
flag
Module dedicated to email envelope flags.
folder
Folder module
imap
maildir
message
Module dedicated to email messages.
retry
search_query
Search emails query
sendmail
smtp
sync
Synchronization
template
Template
tls
utils
Module dedicated to email utils.
watch

Enums§

Error
The global Error enum of the module.

Traits§

AnyError
The global, dowcastable any Error trait of the library.

Functions§

local_draft_path
Gets the local draft file path.
remove_local_draft
Removes the local draft.

Type Aliases§

AnyBoxedError
The global any boxed Error alias of the module.
AnyResult
The global any Result alias of the library.
Result
The global Result alias of the module.