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 B36356DE035A for ; Thu, 21 Sep 2017 19:10:43 -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 AcboC5cSng6a for ; Thu, 21 Sep 2017 19:10:42 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id E6F146DE024A for ; Thu, 21 Sep 2017 19:10:41 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1dvDMj-0001FD-LV; Thu, 21 Sep 2017 22:06:53 -0400 Received: (nullmailer pid 4261 invoked by uid 1000); Fri, 22 Sep 2017 02:10:38 -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: <878th7pkf9.fsf@gmail.com> References: <878th7pkf9.fsf@gmail.com> Date: Thu, 21 Sep 2017 23:10:38 -0300 Message-ID: <87r2uz7aap.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 02:10:43 -0000 Attic Hermit writes: > Batch file of my initial tagging script includes queries like below: > > +john +friend -- tag:new AND from:john@example.tld > +john +friend -- tag:new AND to:john@example.tld > > But I want to compress the above in one line like: > > +john +friend -- tag:new AND from_or_to:john@example.tld > How about +john +friend -- tag:new AND (to:john@example.tld OR from:john@example.tld) ?