[PATCH] emacs: tree: bare-id in tree
authorMark Walters <markwalters1009@gmail.com>
Thu, 19 Dec 2013 19:16:51 +0000 (19:16 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:58:47 +0000 (09:58 -0800)
a2/73ae50a0e490a33416cdcb21fabb80bc2c74e3 [new file with mode: 0644]

diff --git a/a2/73ae50a0e490a33416cdcb21fabb80bc2c74e3 b/a2/73ae50a0e490a33416cdcb21fabb80bc2c74e3
new file mode 100644 (file)
index 0000000..0dd5e5a
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 507DE431FDB\r
+       for <notmuch@notmuchmail.org>; Thu, 19 Dec 2013 11:17:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 0v3l629UZ757 for <notmuch@notmuchmail.org>;\r
+       Thu, 19 Dec 2013 11:16:56 -0800 (PST)\r
+Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com\r
+       [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 64B33431FD8\r
+       for <notmuch@notmuchmail.org>; Thu, 19 Dec 2013 11:16:56 -0800 (PST)\r
+Received: by mail-wi0-f178.google.com with SMTP id bz8so2693816wib.5\r
+       for <notmuch@notmuchmail.org>; Thu, 19 Dec 2013 11:16:55 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id;\r
+       bh=T03jD7nN31MmU9qwvgBWIDDaCZYoJY9ifzED5lfX29I=;\r
+       b=cZHc+av3QpKaw0fOw11M85bMX83mA+y6gDEWmyH0FjimKwX/q6eTcfVD92zO4LwJzk\r
+       9OFSAUgGoqedEm2oaa+RR30Gki+RSZDBsiKkvWPp1CVwqk8GQrF2VJgQwOfhSfiH3x59\r
+       QwLMW9ewRpYLBSv/1c94jfhZyNylqGZg9A4Kazu18GcSRCgubHS9jGCTL+ZkX6Ut9D5V\r
+       zbXLJBjmcF0BFMmmh41FYjskcPK3TRyq+vY19yGr67hTV3QON+BwR2z4yDDPlyAzJxck\r
+       oJpN0XmChxpO5K8z2SrruuD1l67veuMyAEsvPs/siTBuzYEn9HtCD04Gk94M8c0xzQvi\r
+       LtIQ==\r
+X-Received: by 10.194.86.70 with SMTP id n6mr3021866wjz.71.1387480615291;\r
+       Thu, 19 Dec 2013 11:16:55 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id x9sm726544wjf.11.2013.12.19.11.16.54\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Thu, 19 Dec 2013 11:16:54 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: tree: bare-id in tree\r
+Date: Thu, 19 Dec 2013 19:16:51 +0000\r
+Message-Id: <1387480611-15789-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 19 Dec 2013 19:17:04 -0000\r
+\r
+Previously notmuch-tree-get-message-id always returned the id\r
+including the prefix "id:". Modify the function to take an optional\r
+`bare' argument saying to return the raw string.\r
+\r
+This will be useful later and brings the function in line with\r
+notmuch-show-get-message-id.\r
+---\r
+This functionality will be useful later. I think it reasonable to put\r
+it in now as it does bring notmuch-tree-get-message-id in line with\r
+notmuch-show-get-message-id which already has this option.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+ emacs/notmuch-tree.el |    6 ++++--\r
+ 1 files changed, 4 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el\r
+index 8d59e65..1dde9a7 100644\r
+--- a/emacs/notmuch-tree.el\r
++++ b/emacs/notmuch-tree.el\r
+@@ -319,11 +319,13 @@ correct message properties."\r
+   "Return the tags of the current message."\r
+   (notmuch-tree-get-prop :tags))\r
\r
+-(defun notmuch-tree-get-message-id ()\r
++(defun notmuch-tree-get-message-id (&optional bare)\r
+   "Return the message id of the current message."\r
+   (let ((id (notmuch-tree-get-prop :id)))\r
+     (if id\r
+-      (notmuch-id-to-query id)\r
++      (if bare\r
++          id\r
++        (notmuch-id-to-query id))\r
+       nil)))\r
\r
+ (defun notmuch-tree-get-match ()\r
+-- \r
+1.7.9.1\r
+\r