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 9CC316DE34C3 for ; Sat, 17 Mar 2018 04:08:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, 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 QWceM1J6bLn0 for ; Sat, 17 Mar 2018 04:08:39 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 7CE746DE34B2 for ; Sat, 17 Mar 2018 04:08:39 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1ex9hS-0006LW-Q1; Sat, 17 Mar 2018 07:08:34 -0400 Received: (nullmailer pid 11118 invoked by uid 1000); Sat, 17 Mar 2018 11:08:33 -0000 From: David Bremner To: Brian May , notmuch@notmuchmail.org Subject: Re: searching for multiple tags In-Reply-To: <87muz7nv2h.fsf@silverfish.pri> References: <87muz7nv2h.fsf@silverfish.pri> Date: Sat, 17 Mar 2018 08:08:33 -0300 Message-ID: <87k1ubnemm.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Sat, 17 Mar 2018 11:08:40 -0000 Brian May writes: > Hello, > > How do I search for emails containing multiple tags? > > I have tried: > > tag:unread tag:important > > However, this finds emails that contain either the unread tag or the > important tag. Not emails that contain both. > > Am I doing something wrong? This is a design-choice/quirk of the Xapian query parser, discussed under "Operators" in man notmuch-search-terms; terms with a common prefix are implicitely combined with an OR. I don't think that documentation has changed since 0.23, but you can compare with https://notmuchmail.org/manpages/notmuch-search-terms-7/ d