X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-mutt.mdwn;h=9fc11edfbcb80a3aced9397014003da21cf34bcb;hb=56a7ce71e3b208ca556bf0318c407e2156ab25d0;hp=fb7a6c87e33951e5b4933eabbd692b3b0b6de1c7;hpb=da7da77078e6e15f8e3965e6d3fc5b43441613fe;p=notmuch-wiki diff --git a/notmuch-mutt.mdwn b/notmuch-mutt.mdwn index fb7a6c8..9fc11ed 100644 --- a/notmuch-mutt.mdwn +++ b/notmuch-mutt.mdwn @@ -7,7 +7,10 @@ full-text search and thread reconstruction) without *having to* change MUA. 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 @@ -29,12 +32,12 @@ principal possibilities, each with its own ups and downs: "Starred" "notmuch://?query=tag:*"\ "Sent" "notmuch://?query=tag:sent" # sets up queries for virtual folders # notmuch bindings - macro index \\ "" # looks up a hand mane query - macro index A "+archive -unread -inbox\n" # tag as Archived - macro index I "-inbox -unread\n" # removed from inbox - macro index S "-inbox -unread +junk\n" # tag as Junk mail - macro index + "+*\n" # tag as starred - macro index - "-*\n" # tag as unstarred + macro index \\\\ "" # looks up a hand made query + macro index A "+archive -unread -inbox\\n" # tag as Archived + macro index I "-inbox -unread\\n" # removed from inbox + macro index S "-inbox -unread +junk\\n" # tag as Junk mail + macro index + "+*\\n" # tag as starred + macro index - "-*\\n" # tag as unstarred # sidebar set sidebar_width = 20 set sidebar_visible = yes # set to "no" to disable sidebar view at startup @@ -48,13 +51,13 @@ principal possibilities, each with its own ups and downs: macro index ,@( " set sidebar_visible=yes; macro index ~ ,@) 'Toggle sidebar'" 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 @@ -177,7 +180,7 @@ able to open a completion menu when you do at every address header. # 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 @@ -196,7 +199,7 @@ able to open a completion menu when you do at every address header. [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.) -* 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) @@ -213,3 +216,7 @@ able to open a completion menu when you do at every address header. 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)