FYI: gmail contacts as notmuch emacs addressbook

Jani Nikula jani at nikula.org
Thu Nov 17 12:56:39 PST 2011


This is a really simple read-only setup for using gmail contacts as
notmuch addressbook, but perhaps there are people who find this useful:

1) Install goobook http://code.google.com/p/goobook/. On a Debian based
system you might be able do it with:

$ sudo apt-get install python-pip
$ sudo pip install goobook

2) Setup goobook. I simply have 'machine google.com' line in my .netrc,
and no separate .goobookrc, but YMMV. See 'goobook --help' and 'goobook
config-template' for more.

3) Create (and improve! ;) script:

#!/bin/sh
goobook query "$*" | sed 's/\(.*\)\t\(.*\)\t.*/\2 \<\1\>/' | sed '/^$/d'

4) Point notmuch-address-command to the above script as explained in
http://notmuchmail.org/emacstips/#index11h2.

5) Enjoy tab completion to gmail contacts in emacs ui.


BR,
Jani.


More information about the notmuch mailing list