A Python package to simplify receiving, parsing, and sending email
- Receive emails via IMAP
- Retrieve email from any folder
- Create new folders
- Move messages to other folders
- Delete messages
- Monitor folders for new messages using the IMAP
IDLE
command - Always use
/
as the folder hierarchy separator, and convert to the server's hierarchy separator in the background - Always remove folder name characters that conflict with the server's hierarchy separators
- Prepend the namespace to the folder path when required
- Automatically reconnect when needed
- Work around quirks in Gmail/G-suite, Office 365, Exchange, Dovcot, and DavMail
- Consistent email parsing
- SHA256 hashes of attachments
- Simplified email sending via SMTP
- Uses opportunistic encryption (
STARTTLS
) by default - Easily add attachments, plain text, and HTML
- Uses opportunistic encryption (