unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* FYI: gmail contacts as notmuch emacs addressbook
@ 2011-11-17 20:56 Jani Nikula
  0 siblings, 0 replies; only message in thread
From: Jani Nikula @ 2011-11-17 20:56 UTC (permalink / raw)
  To: notmuch


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-17 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-17 20:56 FYI: gmail contacts as notmuch emacs addressbook Jani Nikula

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).