Terminal Email

Alpine vs nmh

Alpine: Menu-driven terminal email client descended from Pine, with built-in help, setup screens and native Windows builds.
nmh: The MH message handling system: separate shell commands to read, file, search and send mail stored one file per message.

How Alpine and nmh differ

Side by side

Alpine and nmh side by side
Alpinenmh
InterfaceFull-screen terminal interfaceCommand-line tools and prompts
LanguageCC
LicenseApache 2.0BSD 3-Clause
Latest version2.261.8
LinuxNativeNative
macOSNativeNative
WindowsNativeThrough WSL
BSDNativeNative
AndroidThrough TermuxThrough Termux
IMAPYesThrough a separate tool
POP3YesYes
SMTPYesYes
JMAPNoNo
MaildirNoYes
mboxYesYes
notmuchNoNo
OpenPGPvia pluginNo
S/MIMEYesNo
OAuth2 sign-inYesNo
ThreadsYesNo
Searchbuilt-in search and message selection; server-side for IMAPpick command matches header fields and message text
HTML mailbuilt-in HTML-to-text renderingvia mhshow with an external converter such as w3m
MouseYesNo
Multiple accountsYesvia per-command switches or separate profiles
Offline useNofull; messages are stored as local files
CalendarYesreplies to invitations with mhical
Contactsbuilt-in address book; LDAP lookupaliases via MailAliases and the ali command
Vim-style keysNoNo
Configurationbuilt-in setup screens, stored in .pinerc~/.mh_profile and mts.conf text files

Which to choose

Choose Alpine for

  • Command list on every screen and built-in help for each option
  • Official native Windows builds alongside Unix packages
  • Built-in XOAUTH2 for Gmail, Outlook and Yahoo, and built-in S/MIME

Watch out for

  • PGP needs external display and sending filters
  • No Maildir, notmuch or JMAP support
  • Last stable release is 2.26; newer work is in alpha builds

Install Alpine

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

Alpine is a full-screen terminal client; nmh is a command-line program. Only Alpine has built-in IMAP. Only nmh has built-in Maildir.

Which runs on Windows, Alpine or nmh?

On Windows, Alpine runs natively. On Windows, nmh runs through WSL.

See also: Alpine alternatives, nmh alternatives.