| 1 |
nmzmail |
| 2 |
======= |
| 3 |
|
| 4 |
nmzmail is a tool to use the [namazu2](http://www.namazu.org) search engine from |
| 5 |
within [mutt](http://www.mutt.org) to search mail stored in maildir folders. |
| 6 |
Based on the result of the namazu query, nmzmail generates a maildir folder |
| 7 |
containing symbolic links to the mails matching the query. A simple mutt |
| 8 |
macro makes easy to use nmzmail from within mutt. |
| 9 |
|
| 10 |
Requirements |
| 11 |
------------ |
| 12 |
* mutt (or perhaps another maildir capable mail reader) |
| 13 |
* namazu2 |
| 14 |
* mail stored in maildir format |
| 15 |
* libreadline |
| 16 |
|
| 17 |
Usage |
| 18 |
----- |
| 19 |
* install namazu2 and mutt |
| 20 |
* unpack nmzmail tar ball and call ./configure; make; make install |
| 21 |
* generate the index using "nmzmail -i <maildir1> <maildir2> ..." |
| 22 |
where <maildir[12]> are directories that contain maildir folders that should |
| 23 |
be searched. By default the index and the result folder will be generated in |
| 24 |
$HOME/.nmzmail |
| 25 |
* add the following macro to your muttrc file: |
| 26 |
macro generic S "<shell-escape>nmzmail<return><esc>c~/.nmzmail/result<return>" "Search via nmzmail" |
| 27 |
|
| 28 |
* run mutt and hit "S", and enter your query when prompted. |
| 29 |
* update your index from time to time or regularly via a cron job with |
| 30 |
nmzmail -i <maildir1> <maildir2> ... |
| 31 |
|
| 32 |
Features |
| 33 |
-------- |
| 34 |
* fast mail searching even with large number of mails; I use it currently |
| 35 |
on about 25000 mails |
| 36 |
* incremental index building |
| 37 |
* [rich query language](http://search.namazu.org/) |
| 38 |
* integrates nicely into mutt |
| 39 |
|
| 40 |
Example Queries |
| 41 |
--------------- |
| 42 |
* +from:hofmann mutt |
| 43 |
searches for mail containg "hofmann" in From-line and mutt anywhere |
| 44 |
* /[Hh]allo|[Hh]ello/ |
| 45 |
returns almost all mails in my folders :-) |
| 46 |
* "Hi there" |
| 47 |
returns only mails literally containing the string "Hi there". |
| 48 |
|
| 49 |
see the [namazu2 documentation](http://search.namazu.org/) for more |
| 50 |
information on the namazu2 query language. |