A popular geek MUA is [the Mutt e-mail client](http://www.mutt.org); integrating
notmuch with Mutt is not seamless, but fairly straightforward. There are two
-principal possibilities, each with its own ups and downs:
+principal possibilities, either using a patched mutt that handles internally
+notmuch, or use a sets of scripts/handler within mutt to achieve something close.
+
+[[!toc levels=2]]
# Using Notmuch with mutt-kz
"Starred" "notmuch://?query=tag:*"\
"Sent" "notmuch://?query=tag:sent" # sets up queries for virtual folders
# notmuch bindings
- macro index \\ "<vfolder-from-query>" # looks up a hand mane query
- macro index A "<modify-labels>+archive -unread -inbox\n" # tag as Archived
- macro index I "<modify-labels>-inbox -unread\n" # removed from inbox
- macro index S "<modify-labels-then-hide>-inbox -unread +junk\n" # tag as Junk mail
- macro index + "<modify-labels>+*\n<sync-mailbox>" # tag as starred
- macro index - "<modify-labels>-*\n<sync-mailbox>" # tag as unstarred
+ macro index \\\\ "<vfolder-from-query>" # looks up a hand made query
+ macro index A "<modify-labels>+archive -unread -inbox\\n" # tag as Archived
+ macro index I "<modify-labels>-inbox -unread\\n" # removed from inbox
+ macro index S "<modify-labels-then-hide>-inbox -unread +junk\\n" # tag as Junk mail
+ macro index + "<modify-labels>+*\\n<sync-mailbox>" # tag as starred
+ macro index - "<modify-labels>-*\\n<sync-mailbox>" # tag as unstarred
# sidebar
set sidebar_width = 20
set sidebar_visible = yes # set to "no" to disable sidebar view at startup
macro index ,@( "<enter-command> set sidebar_visible=yes; macro index ~ ,@) 'Toggle sidebar'<Enter>"
macro index ~ ,@( 'Toggle sidebar' # toggle the sidebar
-* Using:
+## Using:
when you open `mutt` you get the INBOX opened. There you can crawl through your
mails, and tag them as appropriate, either manually using the " ` " command, or using
the bindings defined in configuration (such as A/I/S/+/-).
-* Mail tagging on sending
+## Mail tagging on sending
You may have noticed in `mutt-kz`'s configuration that I set the `sendmail` variable
of mutt to a `nm_sendmail` script. This is for tagging outgoing mail each time I send
# Using Notmuch with bare Mutt, the old fashioned way
-* Using
+## Using
[notmuch-mutt](http://git.notmuchmail.org/git/notmuch/tree/HEAD:/contrib/notmuch-mutt),
which will create a "virtual" maildir folder with search results whenever a
search is made. The upside is that you can search all your folders
[available](http://git.upsilon.cc/cgi-bin/gitweb.cgi?p=zack-homepage.git;a=history;f=blog/posts/2011/01/how_to_use_Notmuch_with_Mutt.mdwn)
in markdown syntax from the Git repository of my homepage.)</small>
-* Using a simple macro that will emulate the "limit" mutt functionality
+## Using a simple macro that will emulate the "limit" mutt functionality
using notmuch.
See the [alternative notmuch integration](http://log.or.cz/?p=228)
your original folder. The downside is that this approach has scaling problems
and works well only for reasonably specific queries.
+## Using [notmuchfs](https://github.com/tsto/notmuchfs)
+
+ Notmuchfs provides virtual maildirs at the file system level, and mutt can be
+ placed on top. See [README.mutt](https://github.com/tsto/notmuchfs/blob/master/README.MUTT.md)