NMAIL(1)
π 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 theoauth2setup. 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 customoauth2client 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:465or587)trash(folder name, ex:Trash)user(ex:example@example.comorexample)
~/.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 π
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
- alpine 3.24: nmail-doc 5.12.6-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms