Terminal Email

alot vs nmh

alot: Terminal mail reader written in Python that works on a local notmuch database, with tag-based search and threads.
nmh: The MH message handling system: separate shell commands to read, file, search and send mail stored one file per message.

How alot and nmh differ

Side by side

alot and nmh side by side
alotnmh
InterfaceFull-screen terminal interfaceCommand-line tools and prompts
LanguagePythonC
LicenseGPL 3.0 or laterBSD 3-Clause
Latest version0.121.8
LinuxNativeNative
macOSNativeNative
WindowsThrough WSLThrough WSL
BSDNativeNative
AndroidNoThrough Termux
IMAPThrough a separate toolThrough a separate tool
POP3Through a separate toolYes
SMTPThrough a separate toolYes
JMAPNoNo
MaildirYesYes
mboxNoYes
notmuchYesNo
OpenPGPYesNo
S/MIMENoNo
OAuth2 sign-inNoNo
ThreadsYesNo
Searchnotmuch queriespick command matches header fields and message text
HTML mailvia mailcap, e.g. w3m -dumpvia mhshow with an external converter such as w3m
MouseYesNo
Multiple accountsYesvia per-command switches or separate profiles
Offline usealways; reads a local notmuch databasefull; messages are stored as local files
CalendarNoreplies to invitations with mhical
Contactsvia an external lookup command such as abook, khard or notmuch addressaliases via MailAliases and the ali command
Vim-style keysYesNo
ConfigurationINI-style config file plus optional Python hooks~/.mh_profile and mts.conf text files

Which to choose

Choose alot for

  • Tag-based searches through notmuch instead of folders
  • Full PGP/MIME signing and encryption
  • Python hooks for custom behavior and formatting

Watch out for

  • Needs separate tools to fetch mail (mbsync) and send it (msmtp)
  • No direct IMAP, POP3 or SMTP support
  • No S/MIME support

Install alot

Choose nmh for

  • Every action is a shell command, so mail handling is easy to script.
  • One file per message lets grep, find and other Unix tools work on mail.
  • Built-in POP3 and SMTP with TLS and SASL; reads mbox and Maildir drops.

Watch out for

  • No IMAP; IMAP mail must be synced to a Maildir first and then incorporated.
  • No built-in OpenPGP or S/MIME, and no thread view.
  • SMTP authentication needs nmh built with Cyrus SASL and its PLAIN or LOGIN plugin.

Install nmh

Questions

What is the difference between alot and nmh?

alot is a full-screen terminal client; nmh is a command-line program. Only alot has built-in notmuch. Only nmh has built-in POP3, SMTP and mbox.

Which runs on Windows, alot or nmh?

On Windows, alot runs through WSL. On Windows, nmh runs through WSL.

See also: alot alternatives, nmh alternatives.