[notmuch] [PATCH] Return unpropertized strings for filename and message-id
authorTassilo Horn <tassilo@member.fsf.org>
Mon, 23 Nov 2009 16:57:31 +0000 (17:57 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:41 +0000 (09:35 -0800)
f8/aea76401a6d8fe18df6977aa65c6a93cdf384c [new file with mode: 0644]

diff --git a/f8/aea76401a6d8fe18df6977aa65c6a93cdf384c b/f8/aea76401a6d8fe18df6977aa65c6a93cdf384c
new file mode 100644 (file)
index 0000000..31d9a1d
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <tassilo@member.fsf.org>\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 276BD431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:57:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 lPTtLEafCU41 for <notmuch@notmuchmail.org>;\r
+       Mon, 23 Nov 2009 08:57:33 -0800 (PST)\r
+Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5179D431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:57:33 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by deliver.uni-koblenz.de (Postfix) with ESMTP id 3103B78A1FF9\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 17:57:32 +0100 (CET)\r
+Received: from deliver.uni-koblenz.de ([127.0.0.1])\r
+       by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new,\r
+       port 10024) with ESMTP id 17346-04-2 for <notmuch@notmuchmail.org>;\r
+       Mon, 23 Nov 2009 17:57:31 +0100 (CET)\r
+X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org\r
+Received: from thinkpad.tsdh.de (unknown [141.26.95.131])\r
+       by deliver.uni-koblenz.de (Postfix) with ESMTP id ABDF178A1FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 17:57:31 +0100 (CET)\r
+From: Tassilo Horn <tassilo@member.fsf.org>\r
+To: notmuch@notmuchmail.org\r
+Mail-Copies-To: never\r
+Date: Mon, 23 Nov 2009 17:57:31 +0100\r
+Message-ID: <87tywlji10.fsf@thinkpad.tsdh.de>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Virus-Scanned: amavisd-new at uni-koblenz.de\r
+Subject: [notmuch] [PATCH] Return unpropertized strings for filename and\r
+       message-id\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Mon, 23 Nov 2009 16:57:34 -0000\r
+\r
+Hi!\r
+\r
+Here's my first patch.  It changes that notmuch-show-get-filename and\r
+notmuch-show-get-message-id return simple strings and not propertited\r
+strings.\r
+\r
+Bye,\r
+Tassilo\r
+\r
+---\r
+ notmuch.el |    4 ++--\r
+ 1 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index 0cabbe2..c2839c0 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -169,7 +169,7 @@ Unlike builtin `next-line' this version accepts no arguments."\r
+     (if (not (looking-at notmuch-show-message-begin-regexp))\r
+        (re-search-backward notmuch-show-message-begin-regexp))\r
+     (re-search-forward notmuch-show-id-regexp)\r
+-    (buffer-substring (match-beginning 1) (match-end 1))))\r
++    (buffer-substring-no-properties (match-beginning 1) (match-end 1))))\r
\r
+ (defun notmuch-show-get-filename ()\r
+   (save-excursion\r
+@@ -177,7 +177,7 @@ Unlike builtin `next-line' this version accepts no arguments."\r
+     (if (not (looking-at notmuch-show-message-begin-regexp))\r
+        (re-search-backward notmuch-show-message-begin-regexp))\r
+     (re-search-forward notmuch-show-filename-regexp)\r
+-    (buffer-substring (match-beginning 1) (match-end 1))))\r
++    (buffer-substring-no-properties (match-beginning 1) (match-end 1))))\r
\r
+ (defun notmuch-show-set-tags (tags)\r
+   (save-excursion\r
+-- \r
+1.6.5.3\r