# nmail vs nmh

- nmail: Terminal email client for Linux and macOS with an Alpine-like interface and built-in IMAP and SMTP.
- nmh: The MH message handling system: separate shell commands to read, file, search and send mail stored one file per message.

## Differences

- nmail is a full-screen terminal client; nmh is a command-line program.
- Only nmail has built-in IMAP.
- Only nmh has built-in POP3, Maildir and mbox.
- On Windows, nmail is not available and nmh runs through WSL.
- On BSD, nmail is not available and nmh runs natively.
- On Android, nmail is not available and nmh runs through Termux.
- nmh has calendar support; nmail does not.
- nmail has OAuth2 sign-in; nmh does not.
- nmh has multiple accounts; nmail does not.
- nmail is written in C++; nmh in C.
- Configuration: nmail uses ~/.config/nmail/main.conf key=value file, and nmh uses ~/.mh_profile and mts.conf text files.

## Side by side

| | nmail | nmh |
| --- | --- | --- |
| Interface | Full-screen terminal interface | Command-line tools and prompts |
| Language | C++ | C |
| License | MIT | BSD 3-Clause |
| Linux | Native | Native |
| macOS | Native | Native |
| Windows | Not supported | Through WSL |
| BSD | Not supported | Native |
| Android | Not supported | Through Termux |
| IMAP | Yes | Through a separate tool |
| POP3 | No | Yes |
| SMTP | Yes | Yes |
| JMAP | No | No |
| Maildir | No | Yes |
| mbox | No | Yes |
| notmuch | No | No |
| OpenPGP | No | No |
| S/MIME | No | No |
| OAuth2 sign-in | Yes | No |
| Threads | No | No |
| Search | local cache index and server search | pick command matches header fields and message text |
| HTML mail | converted to text, or opened in an external browser | via mhshow with an external converter such as w3m |
| Mouse | No | No |
| Multiple accounts | No | via per-command switches or separate profiles |
| Offline use | local SQLite cache; offline mode and send queue | full; messages are stored as local files |
| Calendar | No | replies to invitations with mhical |
| Contacts | address book built from messages | aliases via MailAliases and the ali command |
| Vim-style keys | No | No |
| Configuration | ~/.config/nmail/main.conf key=value file | ~/.mh_profile and mts.conf text files |

Pages: [nmail](https://terminalemail.com/clients/nmail/index.md), [nmh](https://terminalemail.com/clients/nmh/index.md)
