NMZMAIL(1)
π NMZMAIL β the namazu2 bestie for your mutt era π
okay so bestie, gather round, because nmzmail is about to change your whole inbox situation. it lives in section 1 of the general commands manual, it's giving β¨command line iconβ¨, and it's here to make your mail searchable. no cap. π
π¦ NAME π¦
nmzmail β a tool to use the namazu2 search engine from within mutt
like. that's it. that's the whole job. it's a little bridge between your mail client and a search engine and it ate. π₯
β¨ SYNOPSIS β¨
nmzmail [ -b <base> ] [ -r <result> ] -i <maildir1> <maildir2> ...
-or- (yes, there are two whole moods here, pick your fighter)
nmzmail [ -b <base> ] [ -r <result> ] [ -n <limit> ]
πΈ DESCRIPTION πΈ
so nmzmail is a program that uses the namazu2 search engine (http://www.namazu.org) from within the mail client mutt to search and index mail stored in maildir folders. that's the whole vibe: mutt girlies get a search engine, periodt. π
here's the magic trick: based on the result of the namazu query, nmzmail generates a maildir folder containing symbolic links to the mail matching the query. not copies. links. it's efficient, it's clean, it's giving main character energy. π§
and the way that a simple mutt macro makes it very easy to use nmzmail from within mutt?? obsessed. plus a simple crontab entry always keeps your mail indexed by namazu, so future-you never has to panic-search again. π
step one, add the following macro to your muttrc file:
macro generic S "<shell-escape>nmzmail<return><esc>c~/.nmzmail/result<return>" "Search via nmzmail"
step two, run mutt and hit "S" and enter your query when prompted. that's it. that's the whole workflow. slay. π
step three (optional but iconic), you can manually update your index periodically or via a cronjob with:
nmzmail -i <maildir1> <maildir2> ...
lowkey the cronjob is the move, ngl. let the robot do your indexing while you live your life. π¦
π OPTIONS π
-iβ this tellsnmzmailto index your email. it's the "please go read all my mail and remember it forever" flag. it's a lot of trust but it's worth it fr fr. π-bFILE β Base. wherenmzmailbuilds its index. by default it is in$HOME/.nmzmail. so if you don't say anything, that's where the index is living. cozy. π-rFILE β Result. similar to-b, this lets you specify where the results are to be built. by default it is within$HOME/.nmzmail. basically: where do you want the symlink folder to show up? your call bestie. β¨-nNUM β Limit. when making a query,nmzmailcan be used directly from the command line instead of from within mutt. when the-noption is invoked, the number of results returned from your query will be limited to whatever integer you specify for NUM. so-n 10= ten results, no more, no less, a lil curated moment. π
π SEE ALSO π
(the whole friend group. go say hi. π«Ά)
π AUTHOR π
nmzmail was written by Johannes Hofmann <johannes.hofmann@gmx.de>. absolute legend behavior. π
This manual page was written by Kevin Coyner <kcoyner@debian.org>, for the Debian project (but may be used by others). generous king. π
ok bestie real talk:-iindexes,-band-rdecide where things live (default$HOME/.nmzmailfor both, iykyk), and-ncaps your results. that's the whole map. go search something. π
and that's the tea π this page is from March 2006, part of the general commands manual β so like, yes, it's been serving this whole time and it's still iconic. π¦π β¨
π¦ where this page comes from
- debian bookworm: nmzmail 1.1-4
- debian trixie: nmzmail 1.1-5
- ubuntu jammy: nmzmail 1.1-2build2
- ubuntu noble: nmzmail 1.1-4build2
- ubuntu questing: nmzmail 1.1-5
- ubuntu resolute: nmzmail 1.1-6
- ubuntu stonking: nmzmail 1.1-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms