# Himalaya vs S-nail

- Himalaya: Command-line email client written in Rust that lists, reads, sends and moves mail through shell commands with JSON output.
- S-nail: Command-line mail program that implements POSIX mailx, with MIME, IMAP, POP3, SMTP, Maildir and S/MIME support.

## Differences

- Only Himalaya has built-in JMAP.
- Only S-nail has built-in POP3 and mbox.
- On Windows, Himalaya runs natively and S-nail runs through WSL.
- On BSD, Himalaya builds from source and S-nail runs natively.
- S-nail has S/MIME; Himalaya does not.
- Himalaya is written in Rust; S-nail in C.
- Configuration: Himalaya uses TOML file; interactive setup wizard, and S-nail uses ~/.mailrc command file.

## Side by side

| | Himalaya | S-nail |
| --- | --- | --- |
| Interface | Command-line tools and prompts | Command-line tools and prompts |
| Language | Rust | C |
| License | MIT or Apache 2.0 | ISC and BSD 2-Clause and BSD 3-Clause and BSD 4-Clause |
| Linux | Native | Native |
| macOS | Native | Native |
| Windows | Native | Through WSL |
| BSD | Build from source | Native |
| Android | Not supported | Not supported |
| IMAP | Yes | Yes |
| POP3 | No | Yes |
| SMTP | Yes | Yes |
| JMAP | Yes | No |
| Maildir | Yes | Yes |
| mbox | No | Yes |
| notmuch | No | No |
| OpenPGP | No | No |
| S/MIME | No | Yes |
| OAuth2 sign-in | via script | via script |
| Threads | through the IMAP, JMAP and Gmail subcommands | Yes |
| Search | built-in query syntax across backends; server-side for IMAP and JMAP | built-in message specifications and the search command; IMAP SEARCH on IMAP folders |
| HTML mail | No | built-in tag-soup filter or external viewer via mailcap |
| Mouse | No | No |
| Multiple accounts | Yes | Yes |
| Offline use | with the Maildir backend and a sync tool such as mbsync | IMAP cache with disconnected mode |
| Calendar | No | No |
| Contacts | No | aliases via the alias command |
| Vim-style keys | No | No |
| Configuration | TOML file; interactive setup wizard | ~/.mailrc command file |

Pages: [Himalaya](https://terminalemail.com/clients/himalaya/index.md), [S-nail](https://terminalemail.com/clients/s-nail/index.md)
