Re: [PATCH 9/9] add has: query prefix to search for specific properties
authorDavid Bremner <david@tethera.net>
Sat, 6 Aug 2016 14:18:53 +0000 (23:18 +0900)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:20 +0000 (16:22 -0700)
d7/f0cb5e33dec8714702963f79b646855fd200c9 [new file with mode: 0644]

diff --git a/d7/f0cb5e33dec8714702963f79b646855fd200c9 b/d7/f0cb5e33dec8714702963f79b646855fd200c9
new file mode 100644 (file)
index 0000000..1a5926e
--- /dev/null
@@ -0,0 +1,76 @@
+Return-Path: <david@tethera.net>\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 5B48F6DE012F\r
+ for <notmuch@notmuchmail.org>; Sat,  6 Aug 2016 07:19:06 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.008\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.008 tagged_above=-999 required=5 tests=[AWL=0.003,\r
+  SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 6rXlws7u-ub2 for <notmuch@notmuchmail.org>;\r
+ Sat,  6 Aug 2016 07:18:58 -0700 (PDT)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 8C8CA6DE00DF\r
+ for <notmuch@notmuchmail.org>; Sat,  6 Aug 2016 07:18:58 -0700 (PDT)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1bW2RU-0007Zp-2O; Sat, 06 Aug 2016 10:19:12 -0400\r
+Received: (nullmailer pid 23686 invoked by uid 1000);\r
+ Sat, 06 Aug 2016 14:18:53 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Cc: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, Jani Nikula <jani@nikula.org>\r
+Subject: Re: [PATCH 9/9] add has: query prefix to search for specific\r
+ properties\r
+In-Reply-To: <1470491559-3946-10-git-send-email-david@tethera.net>\r
+References: <1470491559-3946-1-git-send-email-david@tethera.net>\r
+ <1470491559-3946-10-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.22.1+61~g2ce0f13 (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 06 Aug 2016 23:18:53 +0900\r
+Message-ID: <87d1lm7zg2.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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 Aug 2016 14:19:06 -0000\r
+\r
+David Bremner <david@tethera.net> writes:\r
+\r
+>  \r
+> +The **has:** prefix searches for messages with a particular\r
+> +<key>=<value> property pair. Properties are used internally by notmuch\r
+> +(and extensions) to add metadata to messages. A given key can be\r
+> +present on a given message with several different values.\r
+> +\r
+\r
+I probably should have added to the commit message that this\r
+documentation is intentionally minimal, because it's not intended for\r
+people creating properties; that should go in API documentation, I think.\r
+\r
+\r
+> +    { "has",                        "XPROPERTY" },\r
+>      /*\r
+>       * Without the ":", since this is a multi-letter prefix, Xapian\r
+>       * will add a colon itself if the first letter of the path\r
+\r
+I don't really understand the comment on the next line (since it seems\r
+that no : is added to XPROPERTY by Xapian), but I guess we should\r
+probably be consistent. Maybe Jani can explain the comment?\r
+\r
+d\r