[PATCH v1] (notmuch-show "id:doesnotexist") should not throw an error.
authorDavid Edmondson <dme@dme.org>
Sat, 6 Feb 2016 18:21:31 +0000 (18:21 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:20:59 +0000 (16:20 -0700)
8d/a295843741dde0944a3470ac570b4d9d05eebe [new file with mode: 0644]

diff --git a/8d/a295843741dde0944a3470ac570b4d9d05eebe b/8d/a295843741dde0944a3470ac570b4d9d05eebe
new file mode 100644 (file)
index 0000000..703ad77
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <dme@dme.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 arlo.cworth.org (Postfix) with ESMTP id E43EC6DE0B25\r
+ for <notmuch@notmuchmail.org>; Sat,  6 Feb 2016 10:21:38 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.237\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.237 tagged_above=-999 required=5 tests=[AWL=0.304, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652,\r
+ UNPARSEABLE_RELAY=0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 64Xq-0gHqAKp for <notmuch@notmuchmail.org>;\r
+ Sat,  6 Feb 2016 10:21:36 -0800 (PST)\r
+Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com\r
+ [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 43E7C6DE09ED for\r
+ <notmuch@notmuchmail.org>; Sat,  6 Feb 2016 10:21:36 -0800 (PST)\r
+Received: by mail-wm0-f67.google.com with SMTP id g62so8340189wme.2\r
+ for <notmuch@notmuchmail.org>; Sat, 06 Feb 2016 10:21:35 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=dme-org.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:subject:date:message-id;\r
+ bh=ud1RjcrUa1CXc7gI9Y9J5e7gbfZ+Rzt94qsEFDiROxo=;\r
+ b=Lrc7TzX6kgPhS4wBFUhWlJA1ToeCOhypalYmSsGHwquUK6GxcPb2jk5x0QOS2NaPdL\r
+ 9KyxdusvVVQrgUWB8eBk0S+ZHZ8fLQgPMi3b4WCma+raCozGBrGELcBc93WpK2hqvDCB\r
+ XGiglP0iaABLzFfC6UtiO4DYq2wIlKi4/YsMMhT1j20h5odn+kXcIowxrNTBBBq4fnCJ\r
+ Z77SqxY80/MIv7jpxdEW7YDnU8fw2NEyzhlgAl5vk6Vu2UafXoaj+gfQC7Z8iBrV4FTx\r
+ Zol2vBWNT2GGp6vA1anhSSaTLIybpztkpXOY9da5KPJXSR1Ef7lcPCEToTRhrt4JvZC6\r
+ 57yQ==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:date:message-id;\r
+ bh=ud1RjcrUa1CXc7gI9Y9J5e7gbfZ+Rzt94qsEFDiROxo=;\r
+ b=NZCOB1XuJ0L6jNfqTS5hyIB5LuLpPpNWzgcDtvThwVuvOZCBgB86ZO7oKrY31BR1u7\r
+ 2rZA85wCg/RlM9xCEG24o6GnEN3m3UGFz4kUCU7+2K5dTi6GhCWxybqF8YJfc2vqsDip\r
+ 4GzlY9hi5qcwS4n2uRq1Z8Sj6VqMXgFVwSbwPtRcbJ33KGGxk+WGHkZfbsxisl3+YH0o\r
+ IbLp465o4Nnjx7srcZnCfIX0CAiFgecXWfBCxPmeDMTm1JyikXpuetqBXwQACS4WINX2\r
+ t6cdT9/TfHgjAuj0NqyKc8NZIraYPXxYec5GWzHvh0KQS7qdLTqTVmARcjvJftrU2JUE\r
+ HnsA==\r
+X-Gm-Message-State:\r
+ AG10YOT20nRwGlZilIDXFuOev9A5/gZOnRINFVhA9qrtrBXj2IL5vG0ijfuKQvAnxCOo0g==\r
+X-Received: by 10.28.224.212 with SMTP id x203mr22752195wmg.29.1454782894636; \r
+ Sat, 06 Feb 2016 10:21:34 -0800 (PST)\r
+Received: from disaster-area.hh.sledj.net\r
+ ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+ by smtp.gmail.com with ESMTPSA id e19sm1232744wmd.1.2016.02.06.10.21.32\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 06 Feb 2016 10:21:32 -0800 (PST)\r
+Received: from localhost (disaster-area.hh.sledj.net [local])\r
+ by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 960fc9c0\r
+ for <notmuch@notmuchmail.org>; Sat, 6 Feb 2016 18:21:32 +0000 (UTC)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v1] (notmuch-show "id:doesnotexist") should not throw an\r
+ error.\r
+Date: Sat,  6 Feb 2016 18:21:31 +0000\r
+Message-Id: <1454782892-1690-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 06 Feb 2016 18:21:39 -0000\r
+\r
+\r
+(notmuch-show "id:doesnotexist") should not throw an error.\r
+\r
+This is a followup to id:"874nw0ltwz.fsf@praet.org" and\r
+id:"cuntx91fwaa.fsf@hotblack-desiato.hh.sledj.net".\r
+\r
+The originally proposed change (to have id: links call `notmuch-show'\r
+rather than `notmuch-search') was already made, but the difficulties\r
+with links that generated no results was not addressed. This patch\r
+aims to do that.\r
+\r
+\r
+David Edmondson (1):\r
+  emacs: Report a lack of matches when calling `notmuch-show'.\r
+\r
+ emacs/notmuch-show.el | 8 +++++++-\r
+ 1 file changed, 7 insertions(+), 1 deletion(-)\r
+\r
+-- \r
+2.1.4\r
+\r