Terminal Email

nmail vs S-nail

nmail: Terminal email client for Linux and macOS with an Alpine-like interface and built-in IMAP and SMTP.
S-nail: Command-line mail program that implements POSIX mailx, with MIME, IMAP, POP3, SMTP, Maildir and S/MIME support.

Differences

Side by side

nmailS-nail
InterfaceFull-screen terminal interfaceCommand-line tools and prompts
LanguageC++C
LicenseMITISC and BSD 2-Clause and BSD 3-Clause and BSD 4-Clause
Latest versionv5.16.414.9.25
LinuxNativeNative
macOSNativeNative
WindowsNoThrough WSL
BSDNoNative
AndroidNoNo
IMAPYesYes
POP3NoYes
SMTPYesYes
JMAPNoNo
MaildirNoYes
mboxNoYes
notmuchNoNo
OpenPGPNoNo
S/MIMENoYes
OAuth2 sign-inYesvia script
ThreadsNoYes
Searchlocal cache index and server searchbuilt-in message specifications and the search command; IMAP SEARCH on IMAP folders
HTML mailconverted to text, or opened in an external browserbuilt-in tag-soup filter or external viewer via mailcap
MouseNoNo
Multiple accountsNoYes
Offline uselocal SQLite cache; offline mode and send queueIMAP cache with disconnected mode
CalendarNoNo
Contactsaddress book built from messagesaliases via the alias command
Vim-style keysNoNo
Configuration~/.config/nmail/main.conf key=value file~/.mailrc command file

Which to choose

Choose nmail for

  • Built-in IMAP and SMTP with setup wizards for Gmail, iCloud and Outlook
  • Local cache, address book and outgoing queue can be encrypted
  • Compose HTML mail using Markdown

Watch out for

  • One account per running instance
  • No threaded view and no PGP or S/MIME
  • Linux and macOS only; no Debian or Fedora package

Install nmail

Choose S-nail for

  • Drop-in POSIX mailx, so it works in existing shell scripts and cron jobs.
  • Built-in SMTP, POP3 and IMAP with TLS; no separate sync or send tool needed.
  • S/MIME signing and encryption are built in.

Watch out for

  • Line-oriented prompt instead of a full-screen interface.
  • No built-in OpenPGP; upstream documents a gpg pipe workaround only.
  • IMAP support is kept at an older code level and upstream advises care.

Install S-nail

Questions

What is the difference between nmail and S-nail?

nmail is a full-screen terminal client; S-nail is a command-line program. Only S-nail has built-in POP3, Maildir and mbox. On Windows, nmail is not available and S-nail runs through WSL.

Which runs on Windows, nmail or S-nail?

On Windows, nmail is not available. On Windows, S-nail runs through WSL.

See also: nmail alternatives, S-nail alternatives.