[PATCH 6/8] CLI: refactor dumping of tags.
[notmuch-archives.git] / cc / 79976339d9978f9aa90793b53caf47f4c6d299
1 Return-Path: <tomi.ollila@iki.fi>\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 46C46431FB6\r
6         for <notmuch@notmuchmail.org>; Sat, 20 Oct 2012 12:35:29 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 Y1jhdRfEhlHr for <notmuch@notmuchmail.org>;\r
16         Sat, 20 Oct 2012 12:35:27 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id A4C31431FAE\r
19         for <notmuch@notmuchmail.org>; Sat, 20 Oct 2012 12:35:27 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 3E2101000E5;\r
22         Sat, 20 Oct 2012 22:35:29 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
25         Daniel Bergey <bergey@alum.mit.edu>,\r
26         Notmuch Mail List <notmuch@notmuchmail.org>\r
27 Subject: Re: [PATCH] emacs: functions to import sender or recipient into BBDB\r
28 In-Reply-To: <876265kno7.fsf@servo.finestructure.net>\r
29 References: <87lii62sk2.fsf@wonderlust.lan> <87ipa66pne.fsf@betacantrips.com>\r
30         <m2bofxa4k3.fsf@guru.guru-group.fi>\r
31         <876265kno7.fsf@servo.finestructure.net>\r
32 User-Agent: Notmuch/0.14+51~g62cd13b (http://notmuchmail.org) Emacs/24.2.1\r
33         (x86_64-unknown-linux-gnu)\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
35         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
36         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
37 Date: Sat, 20 Oct 2012 22:35:28 +0300\r
38 Message-ID: <m2ipa5ym0v.fsf@guru.guru-group.fi>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sat, 20 Oct 2012 19:35:29 -0000\r
54 \r
55 On Sat, Oct 20 2012, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
56 \r
57 > On Sat, Oct 20 2012, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
58 >> I was thinking notmuch-bbdb.el but contrib/notmuch-bbdb.el could be\r
59 >> good start.\r
60 >\r
61 > I find this functionality to be really useful.  I don't know if we have\r
62 > a method of distributing/packaging stuff in contrib, and since I would\r
63 > prefer to see this actually integrated, lets just put it in\r
64 > emacs/notmuch-bbdb.el.\r
65 \r
66 Fine by me. I suggest:\r
67 \r
68 file emacs/notmuch-bbdb.el\r
69 \r
70 functions\r
71 \r
72  notmuch-bbdb/snarf-between-commas\r
73  notmuch-bbdb/snarf-header\r
74 \r
75  notmuch-bbdb/snarf-from\r
76  notmuch-bbdb/snarf-to\r
77 \r
78 (or if the format in origina patch is in line what has been done elsewhere, then:)\r
79 \r
80  bbdb/notmuch-snarf-header\r
81 \r
82  bbdb/notmuch-snarf-from\r
83  bbdb/notmuch-snarf-to\r
84 \r
85 (and, with Ethan's comments addressed)\r
86 \r
87 And then, to notmuch.el or notmuch-show.el:\r
88 \r
89 (autoload 'notmuch-bbdb/snarf-from "notmuch-bbdb" \r
90           "Import the sender of the current message into BBDB" t)\r
91 (autoload 'notmuch-bbdb/snarf-to "notmuch-bbdb" \r
92           "Import all recipients of the current message into BBDB" t)\r
93 \r
94 \r
95 \r
96 \r
97 \r
98 \r
99 >\r
100 > jamie.\r
101 > _______________________________________________\r
102 > notmuch mailing list\r
103 > notmuch@notmuchmail.org\r
104 > http://notmuchmail.org/mailman/listinfo/notmuch\r