--- /dev/null
+Return-Path: <jani@nikula.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 D3D04431FB6\r
+ for <notmuch@notmuchmail.org>; Sun, 18 Jan 2015 02:29:36 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.738\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.738 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]\r
+ 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 kAKbbpv3ee0S for <notmuch@notmuchmail.org>;\r
+ Sun, 18 Jan 2015 02:29:33 -0800 (PST)\r
+Received: from mail-we0-f170.google.com (mail-we0-f170.google.com\r
+ [74.125.82.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 12394431FAF\r
+ for <notmuch@notmuchmail.org>; Sun, 18 Jan 2015 02:29:33 -0800 (PST)\r
+Received: by mail-we0-f170.google.com with SMTP id x3so348487wes.1\r
+ for <notmuch@notmuchmail.org>; Sun, 18 Jan 2015 02:29:31 -0800 (PST)\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:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version:content-type;\r
+ bh=fJPuZ6dR9cMnbK8DJ5OeuaIgXeHpHJTs07ikcUcocLU=;\r
+ b=d/zgZSmVcC/dHIbJd8FWB5MD+qw8X4TgYDmRYXGpODXT9ieZRES4Ztb60/ZsEWWvts\r
+ uiP3uhWbLKMweE4wqoFE/bW5/4PayZPfl2OZDB16zEO+fNa0yNfDp1CxefRjaKoCgc6G\r
+ n3eQRrdbxc1FmQRu3vXDOYiTdU7rWxnekgC0/sze1N6WwPnwFOdH5guWYKXMWJtJeI0S\r
+ pfNCL1CaOuOf9TBwrVAZTiCF3xTlJLi7LlOmql4lH/oohfjSRBJkYVkNJ3egPWUrEXPV\r
+ Vi/L8NWOgWTFe9WYINa+VDjOp6HJzOAtcIuqdafdlnIAFBbK/ojLBSRICZMUifhKsdt8\r
+ /GnQ==\r
+X-Gm-Message-State:\r
+ ALoCoQmxkW/i0L0PjflMrV6soF04A/uXIKrpTJC5hIKGucn8xz5dU2EsbwSTR7bah0JVTm9vgjgP\r
+X-Received: by 10.194.201.137 with SMTP id ka9mr48566903wjc.66.1421576971791; \r
+ Sun, 18 Jan 2015 02:29:31 -0800 (PST)\r
+Received: from localhost (mobile-internet-bcee14-89.dhcp.inet.fi.\r
+ [188.238.20.89]) by mx.google.com with ESMTPSA id\r
+ ez1sm12873737wjd.31.2015.01.18.02.29.30\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sun, 18 Jan 2015 02:29:31 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] doc: add details about Xapian search syntax\r
+In-Reply-To: <1421573635-9427-1-git-send-email-david@tethera.net>\r
+References: <1421573635-9427-1-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.19+19~g9060a1f (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 18 Jan 2015 12:29:43 +0200\r
+Message-ID: <87h9vojsa0.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Sun, 18 Jan 2015 10:29:37 -0000\r
+\r
+On Sun, 18 Jan 2015, David Bremner <david@tethera.net> wrote:\r
+> Questions related to the way that probabilistic prefixes and phrases\r
+> are handled come up quite often and it is nicer to have the documentation self contained. Hopefully putting it in subsections prevents it from being overwhelming.\r
+\r
+I think this is a good idea.\r
+\r
+> ---\r
+> doc/man7/notmuch-search-terms.rst | 46 +++++++++++++++++++++++++++++++++++++++\r
+> 1 file changed, 46 insertions(+)\r
+>\r
+> diff --git a/doc/man7/notmuch-search-terms.rst b/doc/man7/notmuch-search-terms.rst\r
+> index 1acdaa0..5c65938 100644\r
+> --- a/doc/man7/notmuch-search-terms.rst\r
+> +++ b/doc/man7/notmuch-search-terms.rst\r
+> @@ -129,6 +129,52 @@ operators, but will have to be protected from interpretation by the\r
+> shell, (such as by putting quotation marks around any parenthesized\r
+> expression).\r
+> \r
+> +Boolean and Probabilistic Prefixes\r
+> +----------------------------------\r
+> +\r
+> +Xapian (and hence notmuch) prefixes are either **boolean**, supporting\r
+> +exact matches like "tag:inbox" or **probabilistic**, supporting a most flexible **term** based searching. The pre\r
+\r
+The pre?\r
+\r
+> +\r
+> ++------------------+-----------------------+\r
+> +|Boolean |Probabilistic |\r
+> ++------------------+-----------------------+\r
+> +| **tag:** **id:** | **from:** **to:** |\r
+> +|**thread:** |**subject:** |\r
+> +|**folder:** |**attachment** |\r
+> +|**path:** | |\r
+> +| | |\r
+> ++------------------+-----------------------+\r
+> +\r
+> +Terms and phrases\r
+> +-----------------\r
+> +\r
+> +In general Xapian distinguishes between lists of terms and\r
+> +**phrases**. Phrases are indicated by double quotes (but beware you\r
+> +probably need to protect those from your shell) and insist that those\r
+> +unstemmed words occur in that order. One useful, but initially\r
+> +surprising feature is that the following are equivalant ways to write\r
+> +the same phrase.\r
+> +\r
+> +- "a list of words"\r
+> +- a-list-of-words\r
+> +- a/list/of/words\r
+> +- a.list.of.words\r
+> +\r
+> +Both parenthesised lists of terms and quoted phrases are ok with\r
+> +probabilisitic prefixes such as **to:**, **from:**, and **subject:**. In particular\r
+> +\r
+> + subject:(pizza free)\r
+> +\r
+> +is equivalent to\r
+> +\r
+> + subject:pizza and subject:free\r
+> +\r
+> +Both of these will match a subject "Free Delicious Pizza" while\r
+> +\r
+> + subject:"pizza free"\r
+> +\r
+> +will not.\r
+> +\r
+\r
+While at it, I think it would be useful to incorporate relevant parts of\r
+http://notmuchmail.org/searching/ into the man page.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+> DATE AND TIME SEARCH\r
+> ====================\r
+> \r
+> -- \r
+> 2.1.4\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r