Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 8f / ec68db19612ac33610e0d04654c408fd7c5192
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 E6AC9431FC0\r
6         for <notmuch@notmuchmail.org>; Wed,  1 Jan 2014 06:53:32 -0800 (PST)\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 MyABmHIkn9sc for <notmuch@notmuchmail.org>;\r
16         Wed,  1 Jan 2014 06:53:28 -0800 (PST)\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 93C3C431FAF\r
19         for <notmuch@notmuchmail.org>; Wed,  1 Jan 2014 06:53:28 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 8A8E01000B2;\r
22         Wed,  1 Jan 2014 16:53:22 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] emacs: tree: bare-id in tree\r
26 In-Reply-To: <1387480611-15789-1-git-send-email-markwalters1009@gmail.com>\r
27 References: <1387480611-15789-1-git-send-email-markwalters1009@gmail.com>\r
28 User-Agent: Notmuch/0.17+13~gdfcf116 (http://notmuchmail.org) Emacs/24.3.1\r
29         (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Wed, 01 Jan 2014 16:53:22 +0200\r
34 Message-ID: <m2zjnfoisd.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Wed, 01 Jan 2014 14:53:33 -0000\r
50 \r
51 On Thu, Dec 19 2013, Mark Walters <markwalters1009@gmail.com> wrote:\r
52 \r
53 > Previously notmuch-tree-get-message-id always returned the id\r
54 > including the prefix "id:". Modify the function to take an optional\r
55 > `bare' argument saying to return the raw string.\r
56 >\r
57 > This will be useful later and brings the function in line with\r
58 > notmuch-show-get-message-id.\r
59 > ---\r
60 \r
61 LGTM.\r
62 \r
63 Tomi\r
64 \r
65 \r
66 > This functionality will be useful later. I think it reasonable to put\r
67 > it in now as it does bring notmuch-tree-get-message-id in line with\r
68 > notmuch-show-get-message-id which already has this option.\r
69 >\r
70 > Best wishes\r
71 >\r
72 > Mark\r
73 >\r
74 >\r
75 >  emacs/notmuch-tree.el |    6 ++++--\r
76 >  1 files changed, 4 insertions(+), 2 deletions(-)\r
77 >\r
78 > diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el\r
79 > index 8d59e65..1dde9a7 100644\r
80 > --- a/emacs/notmuch-tree.el\r
81 > +++ b/emacs/notmuch-tree.el\r
82 > @@ -319,11 +319,13 @@ correct message properties."\r
83 >    "Return the tags of the current message."\r
84 >    (notmuch-tree-get-prop :tags))\r
85 >  \r
86 > -(defun notmuch-tree-get-message-id ()\r
87 > +(defun notmuch-tree-get-message-id (&optional bare)\r
88 >    "Return the message id of the current message."\r
89 >    (let ((id (notmuch-tree-get-prop :id)))\r
90 >      (if id\r
91 > -     (notmuch-id-to-query id)\r
92 > +     (if bare\r
93 > +         id\r
94 > +       (notmuch-id-to-query id))\r
95 >        nil)))\r
96 >  \r
97 >  (defun notmuch-tree-get-match ()\r
98 > -- \r
99 > 1.7.9.1\r
100 >\r
101 > _______________________________________________\r
102 > notmuch mailing list\r
103 > notmuch@notmuchmail.org\r
104 > http://notmuchmail.org/mailman/listinfo/notmuch\r