mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / notmuch.mdwn
1 [notmuch][] is a clean mail indexer.  You know you got an email from
2 someone with their current phone number, but can't remember where you
3 put it?  Notmuch to the rescue:
4
5     $ notmuch show from:jdoe@example.com home phone
6     message{ id:DF741236-…@example.com … filename:/home/you/mail/…
7
8     header{
9     John Doe <jdoe@example.com> (October 04) (inbox)
10     Subject: new contact info
11     From: John Doe <jdoe@example.com>
12     To: You <you@big.edu>
13     Date: Tue, 4 Oct 2011 18:08:57 -0600
14
15     header}
16
17     body{
18
19     part{ ID: 1, Content-type: text/plain
20     I've got a new home phone number:
21
22       123-456-7890.
23
24     Cheers,
25     John
26
27     part}
28
29     body}
30
31     message}
32
33 [[Gentoo]] installation is simple:
34
35     $ emerge -av notmuch
36     $ notmuch setup
37     (interactive creation of ~/.notmuch-config)
38     $ notmuch new
39     (initial indexing)
40
41 When you want to update the index, just run `notmuch new` again.  You
42 can get fancy with [[offlineimap]] hooks:
43
44     [Account Upsilon]
45     postsynchook = notmuch new
46
47 but I just have a Bash alias in my [[dotfiles]] along the lines of
48
49     alias offlineimap-in='offlineimap && rm -f ~/mail/Junk/* && notmuch new'
50
51 You can also get fancy with [mutt integration][mutt], but I just
52 `grep` the search results on the command line to get what I want.
53
54 P.S.  I'm cleaning out my backlog of half-completed blog posts today,
55 can you tell?
56
57 [notmuch]: http://notmuchmail.org/
58 [mutt]: http://git.upsilon.cc/cgi-bin/gitweb.cgi?p=utils/mutt-notmuch.git;a=summary
59
60 [[!tag tags/tools]]