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 5D1BC6DE096A for ; Fri, 22 Sep 2017 04:55:05 -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 JIL6DgixmTxe for ; Fri, 22 Sep 2017 04:55:03 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 4FDED6DE035A for ; Fri, 22 Sep 2017 04:55:03 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1dvMUB-0001hg-QR; Fri, 22 Sep 2017 07:51:11 -0400 Received: (nullmailer pid 20836 invoked by uid 1000); Fri, 22 Sep 2017 11:54:56 -0000 From: David Bremner To: Attic Hermit , notmuch@notmuchmail.org Subject: Re: Is there a prefix that performs from: and to: simultaneously? In-Reply-To: <874lrvpjay.fsf@gmail.com> References: <878th7pkf9.fsf@gmail.com> <87r2uz7aap.fsf@tethera.net> <874lrvpjay.fsf@gmail.com> Date: Fri, 22 Sep 2017 08:54:56 -0300 Message-ID: <87o9q36j8v.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Fri, 22 Sep 2017 11:55:05 -0000 Attic Hermit writes: >> +john +friend -- tag:new AND (to:john@example.tld OR >> from:john@example.tld) > > First did I tried that form, but I felt that wasn't up to snuff because > I still have to write the same address two times. Currently I think that's the best you can do. You may be interested in defining a predefined query notmuch config query.fromtojohn "to:john@example.tld OR from:john@example.tld" then you can use +john +friend -- tag:new AND (to:john@example.tld OR from:john@example.tld) query:fromtojohn Hypothetically it would be possible to extend the query: syntax to support parameters, but I'm not sure it's worth the extra complexity.