Terminal Email

aerc vs nmh

aerc: Terminal email client written in Go with IMAP, JMAP, Maildir and notmuch backends and an embedded terminal for editing.
nmh: The MH message handling system: separate shell commands to read, file, search and send mail stored one file per message.

Differences

Side by side

aercnmh
InterfaceFull-screen terminal interfaceCommand-line tools and prompts
LanguageGoC
LicenseMITBSD 3-Clause
Latest version0.22.01.8
LinuxNativeNative
macOSNativeNative
WindowsThrough WSLThrough WSL
BSDNativeNative
AndroidThrough TermuxThrough Termux
IMAPYesThrough a separate tool
POP3NoYes
SMTPYesYes
JMAPYesNo
MaildirYesYes
mboxYesYes
notmuchYesNo
OpenPGPYesNo
S/MIMENoNo
OAuth2 sign-inYesNo
ThreadsYesNo
Searchbuilt-in; server-side for IMAP and JMAP; notmuch queriespick command matches header fields and message text
HTML mailvia filters, w3m by defaultvia mhshow with an external converter such as w3m
MouseYesNo
Multiple accountsYesvia per-command switches or separate profiles
Offline usewith mbsync or OfflineIMAP through the Maildir backend; IMAP header cachefull; messages are stored as local files
CalendarYesreplies to invitations with mhical
Contactsvia address-book-cmd, e.g. khard or the bundled carddav-queryaliases via MailAliases and the ali command
Vim-style keysYesNo
ConfigurationINI-style files: accounts.conf, aerc.conf, binds.conf~/.mh_profile and mts.conf text files

Which to choose

Choose aerc for

  • Embedded terminal runs the editor and other commands inside aerc
  • Built-in commands for applying and reviewing git patch series
  • Supports JMAP and notmuch as well as IMAP and Maildir

Watch out for

  • No POP3 or S/MIME support
  • mbox files open read-only
  • No native Windows build

Install aerc

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 aerc and nmh?

aerc is a full-screen terminal client; nmh is a command-line program. Only aerc has built-in IMAP, JMAP and notmuch. Only nmh has built-in POP3.

Which runs on Windows, aerc or nmh?

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

See also: aerc alternatives, nmh alternatives.