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 B8600429E40 for ; Tue, 26 Apr 2011 16:01:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.99 X-Spam-Level: X-Spam-Status: No, score=-0.99 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, 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 c+6BgoKezg2b; Tue, 26 Apr 2011 16:01:18 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0FFA4431FD0; Tue, 26 Apr 2011 16:01:18 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 6FA112543F1; Tue, 26 Apr 2011 16:01:17 -0700 (PDT) From: Carl Worth To: Florian Friesdorf , notmuch@notmuchmail.org Subject: Re: doc: notmuch help search-terms, boolean operators In-Reply-To: <87fwp4tzvd.fsf@eve.chaoflow.net> References: <87fwp4tzvd.fsf@eve.chaoflow.net> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Tue, 26 Apr 2011 16:01:17 -0700 Message-ID: <87d3k81ute.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: Olly Betts 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 23:01:18 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 27 Apr 2011 00:24:38 +0200, Florian Friesdorf wr= ote: > I would like to replace the "etc" with a full list and document the > operator precedence. Yes, that's a fine idea. > 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. >=20 > Through playing with `notmuch tag` and `notmuch search > --output=3Dmessages` I found: >=20 > Complete list of boolean operators in order of precedence: > - NOT > - AND > - XOR > - OR >=20 > Is this correct? If yes, I would extend the manpage accordingly. Currently, notmuch doesn't implement this behavior but relies on Xapian's query parser to do so. As such, I'd really prefer to see Xapian's documentation augmented here before we start documenting any particular behavior in notmuch. Olly, is the above list of operators complete and in the correct order of precendence? =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iD8DBQFNt0696JDdNq8qSWgRAq60AJ9gzfMEsVwC1Lcmd/JzbVcXHk34dQCeOsyP q9qJ+2obSxeA4hwMgioQgk0= =6RFh -----END PGP SIGNATURE----- --=-=-=--