From: W. Trevor King Date: Tue, 21 Feb 2012 16:24:16 +0000 (-0500) Subject: Add notmuch post. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af4aa4b31f0131a7e31bcb37a7ff252174469f95;p=blog.git Add notmuch post. --- diff --git a/posts/notmuch.mdwn b/posts/notmuch.mdwn new file mode 100644 index 0000000..a3dfe5f --- /dev/null +++ b/posts/notmuch.mdwn @@ -0,0 +1,60 @@ +[notmuch][] is a clean mail indexer. You know you got an email from +someone with their current phone number, but can't remember where you +put it? Notmuch to the rescue: + + $ notmuch show from:jdoe@example.com home phone + message{ id:DF741236-…@example.com … filename:/home/you/mail/… + + header{ + John Doe (October 04) (inbox) + Subject: new contact info + From: John Doe + To: You + Date: Tue, 4 Oct 2011 18:08:57 -0600 + + header} + + body{ + + part{ ID: 1, Content-type: text/plain + I've got a new home phone number: + + 123-456-7890. + + Cheers, + John + + part} + + body} + + message} + +[[Gentoo]] installation is simple: + + $ emerge -av notmuch + $ notmuch setup + (interactive creation of ~/.notmuch-config) + $ notmuch new + (initial indexing) + +When you want to update the index, just run `notmuch new` again. You +can get fancy with [[offlineimap]] hooks: + + [Account Upsilon] + postsynchook = notmuch new + +but I just have a Bash alias in my [[dotfiles]] along the lines of + + alias offlineimap-in='offlineimap && rm -f ~/mail/Junk/* && notmuch new' + +You can also get fancy with [mutt integration][mutt], but I just +`grep` the search results on the command line to get what I want. + +P.S. I'm cleaning out my backlog of half-completed blog posts today, +can you tell? + +[notmuch]: http://notmuchmail.org/ +[mutt]: http://git.upsilon.cc/cgi-bin/gitweb.cgi?p=utils/mutt-notmuch.git;a=summary + +[[!tag tags/tools]]