From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 923546DE02AF for ; Mon, 29 Aug 2016 13:05:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.007 X-Spam-Level: X-Spam-Status: No, score=-0.007 tagged_above=-999 required=5 tests=[AWL=0.004, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kBpV99G2k6ld for ; Mon, 29 Aug 2016 13:05:13 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id E52D86DE0130 for ; Mon, 29 Aug 2016 13:05:12 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1beSnr-0000dx-Oo; Mon, 29 Aug 2016 16:05:07 -0400 Received: (nullmailer pid 7263 invoked by uid 1000); Mon, 29 Aug 2016 20:05:08 -0000 From: David Bremner To: Yuri D'Elia , notmuch@notmuchmail.org Subject: Re: Query operators In-Reply-To: <87fupnpqjw.fsf@wavexx.thregr.org> References: <87y43fq368.fsf@wavexx.thregr.org> <87bn0bog1l.fsf@zancas.localnet> <87fupnpqjw.fsf@wavexx.thregr.org> User-Agent: Notmuch/0.22.1 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Mon, 29 Aug 2016 17:05:08 -0300 Message-ID: <87twe3mjd7.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Mon, 29 Aug 2016 20:05:13 -0000 Yuri D'Elia writes: > > What's your POV on this? Is it expected/useful in some scenario? > > I'd expect all terms to follow the same rules for consistency. For terms where each document (mail message) has only one term with a given prefix, OR is a more natural default, since AND can never match. In notmuch we have id:, path:, and thread: of this type (and maybe lastmod: and date:, although these are not boolean prefixes), compared to tag: where each document can have many terms with the same prefix. Making tag: behave differently than the others is probably not that nice either, so mostly I'd suggest explicitly writing what operators you want. d