Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 35BF3429E40 for ; Tue, 26 Apr 2011 15:24:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k0IhKqt9hT+L for ; Tue, 26 Apr 2011 15:24:40 -0700 (PDT) Received: from tesla.chaoflow.net (tesla.chaoflow.net [188.40.54.22]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 73A64431FD0 for ; Tue, 26 Apr 2011 15:24:40 -0700 (PDT) Received: from eve.chaoflow.net (pD9F60B67.dip.t-dialin.net [217.246.11.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: flo@chaoflow.net) by tesla.chaoflow.net (Postfix) with ESMTPSA id 21B4623C for ; Wed, 27 Apr 2011 00:24:38 +0200 (CEST) Received: by eve.chaoflow.net (Postfix, from userid 1000) id 6742A922; Tue, 26 Apr 2011 22:24:38 +0000 (Local time zone must be set--see zic manual page) From: Florian Friesdorf To: notmuch@notmuchmail.org Subject: doc: notmuch help search-terms, boolean operators User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Wed, 27 Apr 2011 00:24:38 +0200 Message-ID: <87fwp4tzvd.fsf@eve.chaoflow.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.96.5 at tesla X-Virus-Status: Clean X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 22:24:41 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable `notmuch help search-terms` currently states: "In addition to individual terms, multiple terms can be combined with Boolean operators ("and", "or", "not", etc.).". I would like to replace the "etc" with a full list and document the operator precedence. In lib/notmuch.h for notmuch_query_create I found a pointer to xapian docs [2], which states that AND takes precedence over OR, but nothing for NOT and XOR. Through playing with `notmuch tag` and `notmuch search =2D-output=3Dmessages` I found: Complete list of boolean operators in order of precedence: =2D NOT =2D AND =2D XOR =2D OR Is this correct? If yes, I would extend the manpage accordingly. [2] http://xapian.org/docs/queryparser.html =2D-=20 Florian Friesdorf GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: flo@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAEBAgAGBQJNt0YmAAoJEDj4maMMRfCD2QQQAMFYWsaLIjsYTQzT+9Ra4f4k 21m1GgpaP4cBYamoqtdLMVhwVlulHZLWDUjE6XHPk8C+qqxU4ZhsfkWhGeh5vkpW UYKHmDD4eb8kM3rNySv6usv+unOUa5njXVsd9gsoaVZE07knNH4BNvrw1SFsbvgH 0xhZixVkBQr/6ofuu3EWt4fVuULzsVYK0Fp5yG+OuWM/km/71mRdzWQjIwRP6ir7 7LjJyv6GmGa22L2CRGoqjdICdAW0idq64Gs1sbGM6b4nqYhOhwlHTXzwpteHOXnC xtOiinmliHH76Loc/qQ5F9PZg3h3f9jbcSMm27jopHYN/MCFo0ZVt/90iX6ZEykJ 33axMI7uH7jhxxi9/6eAP5Gp+jKFl/VrknPVCq5v2V9LTAj3NMaEIQRYtrwnvMqs pkR764hBnzn5A8jSzl1RhlyNSvnsRZZNQ7uHOpSEoxLzbuq9mSjHNFBxHR+nEXiS H476IbX+UDs7N6L6UJFtf8MWmcGVMsH5oENecdD3DHHYhmQNPBw8rl/gPTbprMeB CKEKjzBYOo7k4Nk5fr4waH404bJvQT689TIUTWSPYECFzBLnEtDU5jCFLoGm7vva PkoubEw8bwbI+Ye/GLtipaFOUMXJhyDI8zYR3rBiEV86oDF+AOWjk4JduRzCkrqf uplnL6gRszoBJX/32tyo =j5Ik -----END PGP SIGNATURE----- --=-=-=--