1 Return-Path: <markwalters1009@gmail.com>
\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 507DE431FDB
\r
6 for <notmuch@notmuchmail.org>; Thu, 19 Dec 2013 11:17:03 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id 0v3l629UZ757 for <notmuch@notmuchmail.org>;
\r
18 Thu, 19 Dec 2013 11:16:56 -0800 (PST)
\r
19 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com
\r
20 [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 64B33431FD8
\r
23 for <notmuch@notmuchmail.org>; Thu, 19 Dec 2013 11:16:56 -0800 (PST)
\r
24 Received: by mail-wi0-f178.google.com with SMTP id bz8so2693816wib.5
\r
25 for <notmuch@notmuchmail.org>; Thu, 19 Dec 2013 11:16:55 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id;
\r
28 bh=T03jD7nN31MmU9qwvgBWIDDaCZYoJY9ifzED5lfX29I=;
\r
29 b=cZHc+av3QpKaw0fOw11M85bMX83mA+y6gDEWmyH0FjimKwX/q6eTcfVD92zO4LwJzk
\r
30 9OFSAUgGoqedEm2oaa+RR30Gki+RSZDBsiKkvWPp1CVwqk8GQrF2VJgQwOfhSfiH3x59
\r
31 QwLMW9ewRpYLBSv/1c94jfhZyNylqGZg9A4Kazu18GcSRCgubHS9jGCTL+ZkX6Ut9D5V
\r
32 zbXLJBjmcF0BFMmmh41FYjskcPK3TRyq+vY19yGr67hTV3QON+BwR2z4yDDPlyAzJxck
\r
33 oJpN0XmChxpO5K8z2SrruuD1l67veuMyAEsvPs/siTBuzYEn9HtCD04Gk94M8c0xzQvi
\r
35 X-Received: by 10.194.86.70 with SMTP id n6mr3021866wjz.71.1387480615291;
\r
36 Thu, 19 Dec 2013 11:16:55 -0800 (PST)
\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])
\r
38 by mx.google.com with ESMTPSA id x9sm726544wjf.11.2013.12.19.11.16.54
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Thu, 19 Dec 2013 11:16:54 -0800 (PST)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH] emacs: tree: bare-id in tree
\r
45 Date: Thu, 19 Dec 2013 19:16:51 +0000
\r
46 Message-Id: <1387480611-15789-1-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Thu, 19 Dec 2013 19:17:04 -0000
\r
62 Previously notmuch-tree-get-message-id always returned the id
\r
63 including the prefix "id:". Modify the function to take an optional
\r
64 `bare' argument saying to return the raw string.
\r
66 This will be useful later and brings the function in line with
\r
67 notmuch-show-get-message-id.
\r
69 This functionality will be useful later. I think it reasonable to put
\r
70 it in now as it does bring notmuch-tree-get-message-id in line with
\r
71 notmuch-show-get-message-id which already has this option.
\r
78 emacs/notmuch-tree.el | 6 ++++--
\r
79 1 files changed, 4 insertions(+), 2 deletions(-)
\r
81 diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
\r
82 index 8d59e65..1dde9a7 100644
\r
83 --- a/emacs/notmuch-tree.el
\r
84 +++ b/emacs/notmuch-tree.el
\r
85 @@ -319,11 +319,13 @@ correct message properties."
\r
86 "Return the tags of the current message."
\r
87 (notmuch-tree-get-prop :tags))
\r
89 -(defun notmuch-tree-get-message-id ()
\r
90 +(defun notmuch-tree-get-message-id (&optional bare)
\r
91 "Return the message id of the current message."
\r
92 (let ((id (notmuch-tree-get-prop :id)))
\r
94 - (notmuch-id-to-query id)
\r
97 + (notmuch-id-to-query id))
\r
100 (defun notmuch-tree-get-match ()
\r