# mu4e vs nmail

- mu4e: Email client that runs inside GNU Emacs, built on the mu Maildir indexer and search tool.
- nmail: Terminal email client for Linux and macOS with an Alpine-like interface and built-in IMAP and SMTP.

## Differences

- mu4e is a mail client that runs inside Emacs; nmail is a full-screen terminal client.
- Only mu4e has built-in Maildir.
- Only nmail has built-in IMAP.
- On Windows, mu4e runs through WSL and nmail is not available.
- On BSD, mu4e runs natively and nmail is not available.
- On Android, mu4e runs through Termux and nmail is not available.
- mu4e has mouse support; nmail does not.
- mu4e has calendar support; nmail does not.
- mu4e has OpenPGP; nmail does not.
- mu4e has S/MIME; nmail does not.
- mu4e has multiple accounts; nmail does not.
- mu4e has threaded views; nmail does not.
- mu4e is written in Emacs Lisp (mu4e), C++ (mu); nmail in C++.
- Configuration: mu4e uses Emacs Lisp in init.el, and nmail uses ~/.config/nmail/main.conf key=value file.

## Side by side

| | mu4e | nmail |
| --- | --- | --- |
| Interface | Runs inside Emacs | Full-screen terminal interface |
| Language | Emacs Lisp (mu4e), C++ (mu) | C++ |
| License | GPL 3.0 or later | MIT |
| Linux | Native | Native |
| macOS | Native | Native |
| Windows | Through WSL | Not supported |
| BSD | Native | Not supported |
| Android | Through Termux | Not supported |
| IMAP | Through a separate tool | Yes |
| POP3 | Through a separate tool | No |
| SMTP | Yes | Yes |
| JMAP | No | No |
| Maildir | Yes | No |
| mbox | No | No |
| notmuch | No | No |
| OpenPGP | Yes | No |
| S/MIME | via Emacs MML | No |
| OAuth2 sign-in | via script | Yes |
| Threads | Yes | No |
| Search | Xapian full-text index with mu query syntax | local cache index and server search |
| HTML mail | built-in, rendered with the Emacs shr library | converted to text, or opened in an external browser |
| Mouse | Yes | No |
| Multiple accounts | via contexts | No |
| Offline use | full; reads a local Maildir synced by mbsync or OfflineIMAP | local SQLite cache; offline mode and send queue |
| Calendar | replies to invitations with mu4e-icalendar | No |
| Contacts | address completion from indexed mail | address book built from messages |
| Vim-style keys | No | No |
| Configuration | Emacs Lisp in init.el | ~/.config/nmail/main.conf key=value file |

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