tmail is a scriptable mail client for the terminal. It reads mail over IMAP or from a Maildir, sends it over SMTP, signs and encrypts through your own gpg, and takes Lua scripts, rules, themes and languages.
tmail opens a terminal interface for reading, searching, writing and managing mail across your accounts: IMAP and Maildir folders, a local cache for offline use, new-mail polling, conversations, a reader that shows the signature and encryption status of each message, and a : line for everything else. To write a message, it opens $VISUAL or $EDITOR; it has no editor of its own.
Not planned for version 1: OAuth2, saved drafts, attachments when sending, a built-in editor, and drawing HTML as a web page. The code is GPL-3.0-or-later.