NMAIL(1)

πŸ“¦ version 5.12.6, in alpine 3.24

🌈 NMAIL(1) β€” the ncurses mail bestie guide πŸ’Œ

okay so picture this: a terminal email client that's giving full alpine energy but make it modern and honestly kinda iconic. that's nmail, bestie. it speaks IMAP and SMTP, it lives in your terminal, and it's about to become your new main character. this is the nmail page from the User Commands manual, and we're gonna walk through it together, no cap. 🫢


✨ SYNOPSIS ✨

nmail [OPTION]

literally just run it with an option (or don't, live your truth πŸ’…).


πŸ¦‹ DESCRIPTION πŸ¦‹

nmail is a terminal-based email client. its user interface is similar to alpine, and it supports IMAP and SMTP. so yeah β€” old-school terminal vibes, fully functional inbox, no browser tabs required. iconic behavior honestly. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -c, --cache-encrypt β€” prompts you for cache encryption during the oauth2 setup. protect the goods, babe πŸ”
  • -d, --confdir <DIR> β€” use a directory that isn't the default ~/.config/nmail. for when you want your config somewhere else, we respect that.
  • -e, --verbose β€” enables verbose logging. chatty mode: on πŸ—£οΈ
  • -ee, --extra-verbose β€” enables extra verbose logging. chatty mode: somehow even more on 😭
  • -h, --help β€” displays the help and exits. the classic "wait what do I do" flag, we've all been there πŸ’–
  • -k, --keydump β€” key code dump mode. press keys, see codes, that's the vibe 🎹
  • -o, --offline β€” run in offline mode. airplane mode but make it email ✈️
  • -p, --pass β€” change your password. glow-up for your credentials πŸ’…
  • -ro, --read-only β€” runs a shadow instance with read-only cache access. look but don't touch, lowkey spooky but useful πŸ‘€
  • -s, --setup <SERVICE> β€” runs the setup wizard for the specified service. supported services are literally: gmail, gmail-oauth2, icloud, outlook, outlook-oauth2. pick your fighter ✨
  • -v, --version β€” outputs version info and exits. just checking who we are πŸͺž
  • -x, --export <DIR> β€” exports the cache to the specified dir in Maildir format. take your mail on a little field trip πŸ“¦

🌸 FILES 🌸

  • ~/.config/nmail/auth.conf β€” configures a custom oauth2 client id and secret. your secret is safe with us 🀫
  • ~/.config/nmail/key.conf β€” configures your user interface key bindings. make the keys do what you want, main character energy πŸ‘‘
  • ~/.config/nmail/main.conf β€” configures your mail account and general settings. for full functionality the following fields shall be configured (yes, all of them, bestie):
    • address (ex: example@example.com)
    • drafts (folder name, ex: Drafts)
    • imap_host (ex: imap.example.com)
    • imap_port (ex: 993)
    • inbox (folder name, ex: Inbox)
    • name (ex: Firstname Lastname)
    • sent (folder name, ex: Sent)
    • smtp_host (ex: smtp.example.com)
    • smtp_port (ex: 465 or 587)
    • trash (folder name, ex: Trash)
    • user (ex: example@example.com or example)
  • ~/.config/nmail/ui.conf β€” customizes user interface settings. aesthetic choices are valid πŸ’–

⭐ EXAMPLES ⭐

set up nmail for a gmail account:

nmail -s gmail

and then this whole situation β€” running nmail without the setup wizard will generate default configuration files in the nmail dir if not present already. these can be edited to configure nmail for email service providers that the built-in setup wizard doesn't support (refer to the FILES section above for the details, bestie 🫢). so you're never locked out, you just gotta DIY it a little.

nmail

🧚 AUTHOR 🧚

Written by Kristofer Berggren. thank you for your service, king 🫑


πŸ’€ REPORTING BUGS πŸ’€

Report bugs at https://github.com/d99kris/nmail. found a weird little glitch? tell on it, that's how it gets fixed πŸ›


Copyright Β© 2019-2026 Kristofer Berggren

nmail is distributed under the MIT license. slay, legally speaking πŸ’œ


okay that's the whole page, every flag and file and field accounted for, fr fr. now go configure your inbox and live your best terminal life ✨

and that's a wrap on nmail 5.12.6 from April 2026 β€” see you in the terminal, bestie, mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from