1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 139BC429E27
\r
6 for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 12:56:45 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id bF1m2z5e04-5 for <notmuch@notmuchmail.org>;
\r
16 Thu, 17 Nov 2011 12:56:44 -0800 (PST)
\r
17 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com
\r
18 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 60758429E26
\r
21 for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 12:56:44 -0800 (PST)
\r
22 Received: by bkaq10 with SMTP id q10so2739777bka.26
\r
23 for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 12:56:43 -0800 (PST)
\r
24 Received: by 10.204.154.137 with SMTP id o9mr207445bkw.80.1321563402914;
\r
25 Thu, 17 Nov 2011 12:56:42 -0800 (PST)
\r
26 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.
\r
28 by mx.google.com with ESMTPS id w11sm3172511fad.7.2011.11.17.12.56.40
\r
29 (version=SSLv3 cipher=OTHER); Thu, 17 Nov 2011 12:56:41 -0800 (PST)
\r
30 From: Jani Nikula <jani@nikula.org>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: FYI: gmail contacts as notmuch emacs addressbook
\r
33 User-Agent: Notmuch/0.10~rc1+24~g7265be8 (http://notmuchmail.org) Emacs/23.3.1
\r
35 Date: Thu, 17 Nov 2011 22:56:39 +0200
\r
36 Message-ID: <87zkfuh3i0.fsf@nikula.org>
\r
38 Content-Type: text/plain; charset=us-ascii
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Thu, 17 Nov 2011 20:56:45 -0000
\r
54 This is a really simple read-only setup for using gmail contacts as
\r
55 notmuch addressbook, but perhaps there are people who find this useful:
\r
57 1) Install goobook http://code.google.com/p/goobook/. On a Debian based
\r
58 system you might be able do it with:
\r
60 $ sudo apt-get install python-pip
\r
61 $ sudo pip install goobook
\r
63 2) Setup goobook. I simply have 'machine google.com' line in my .netrc,
\r
64 and no separate .goobookrc, but YMMV. See 'goobook --help' and 'goobook
\r
65 config-template' for more.
\r
67 3) Create (and improve! ;) script:
\r
70 goobook query "$*" | sed 's/\(.*\)\t\(.*\)\t.*/\2 \<\1\>/' | sed '/^$/d'
\r
72 4) Point notmuch-address-command to the above script as explained in
\r
73 http://notmuchmail.org/emacstips/#index11h2.
\r
75 5) Enjoy tab completion to gmail contacts in emacs ui.
\r