Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 857B36DE18EF for ; Thu, 31 Dec 2015 08:49:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.009 X-Spam-Level: X-Spam-Status: No, score=-0.009 tagged_above=-999 required=5 tests=[AWL=0.092, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 q2wCamP6zMp3 for ; Thu, 31 Dec 2015 08:49:30 -0800 (PST) Received: from resqmta-po-05v.sys.comcast.net (resqmta-po-05v.sys.comcast.net [96.114.154.164]) by arlo.cworth.org (Postfix) with ESMTPS id BF7C56DE182F for ; Thu, 31 Dec 2015 08:49:29 -0800 (PST) Received: from resomta-po-17v.sys.comcast.net ([96.114.154.241]) by resqmta-po-05v.sys.comcast.net with comcast id 0GpB1s0065Clt1L01GpV1L; Thu, 31 Dec 2015 16:49:29 +0000 Received: from mail.tremily.us ([73.221.72.168]) by resomta-po-17v.sys.comcast.net with comcast id 0GnT1s0083dr3C901GnTR2; Thu, 31 Dec 2015 16:47:29 +0000 Received: by mail.tremily.us (Postfix, from userid 1000) id D1A1E1B2DBF8; Thu, 31 Dec 2015 08:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1451580444; bh=32DaLnInxMHXetP3hbDPx6A2nDdkuRnMEaoCDk7N1cw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=B5v6YyauKQhpgxdWeN/aQmdw6eQ1b47NEsPajwehnLe9KOM5Wm0h8t4ljCjtFiQG2 ieva9CvWpoTaL5QEMUNNr5+PUPxxM+/UscAvebsddIdJ0EsZ7W880roC3OV2ZogBAQ SSryeXX9aizbEKrP+qscp1sqQqO5o3GmxRQ4wKB8= Date: Thu, 31 Dec 2015 08:47:19 -0800 From: "W. Trevor King" To: notmuch@notmuchmail.org Cc: David Bremner , Tomi Ollila , Jani Nikula , Carl Worth Subject: Re: [PATCH 4/5] nmbug-status: Wrap query phrases in parentheses when and-ing together Message-ID: <20151231164719.GA20010@odin.tremily.us> References: <32c5603342644a01afd201ce6139299558d7f80b.1451502495.git.wking@tremily.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <32c5603342644a01afd201ce6139299558d7f80b.1451502495.git.wking@tremily.us> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.23 (2014-03-12) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1451580569; bh=lMiIBRQG/AKF7IS0IOlC/2JnL9ZuT+sL3WfLqNhRx6o=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=u74EkZRQ5VYdrPoDoVt2iXJaKuWl0cnkYOa6zosQFE9vvaUixdRWIz0neSvKlH0aZ xs2Zt8RWqiGWqKErAOOJKZ1Ahsv0wl2L5vbUHDiWX1ojVPioIyimlfbJxjJlWlsQsz srel/+TkFxxzDJt9T+8vhpfEr8EFrqWR/nEYl2SprcE0D9qNdMieYZsfpmmNq6N2lc 6hqoVsYAMCKS1himtpNBIwdqzfeyvAuBX4WiUT48ZA7CINZgcXZVGndhjf6H+RsOQz D8l7vzwlOogkXLN37KpA5v8BljiMSL5Dug47bYxlwrH0AY7fg5/huxgp6ctml+Hg2Z JFYIPjqBe3QRw== X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Thu, 31 Dec 2015 16:49:33 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 30, 2015 at 11:16:59AM -0800, W. Trevor King wrote: > @@ -167,7 +167,8 @@ class Page (object): > view['title'], sort_key)) > if 'query-string' not in view: > query =3D view['query'] > - view['query-string'] =3D ' and '.join(query) > + view['query-string'] =3D ' and '.join( > + '( {} )'.format(q) for q in query) This patch is missing a similar change around line 414 to handle: $ nmbug-status --get-query VIEW I've queued that for v2. Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJWhVwVAAoJEAPqygegUbGsIl4P/jIvm1f2fcPz9oK5Cpn8djNi U9lS+pN07waScNE7E1lJl6fI9kBBV0foZ7TYm/TzHKReMGKpr8ztG/W7C02M2lLF OxUbThwR7QTjiClXUb0dwyK+CgCF+hKSEV1BlHm1K2cRsQVBDldW6QX8o+g0Llt5 yXaR43yadJW60PJbGTdSVwMUscoOdzHQR1e8Ov9tQsveDGIwB/fgJ/NWlZjF5h0i 3MHRAe76PatsOcnitwBTx88YEOETQA03BE/Mf5btzZumnyY6oYWNzCRdPXOxPnnY SlAGvTOnqZpWeVLRzMObZ0GLa1NMFy+VmG7Acn05SlqftJplsFgGIWCsorzgCUKR 5GtmaMmuXVKzSuJMIFhz6hfJMCwnlQsLngLav/wBwySq4zCarEwmJi09+cnAQ0IT vUcwpEh8ejxx32WLTqJPfUt4Oxsn9zJFPjoWckkxj1mfKQzjopwcMEKMObmlzYH+ hg99dpeSIRk1f/9xac8ksgvkkjmqedD5bNTj8avSTLLRbhYTTBcHwOfeqQzwJN6i l/5kM0pbn7O/eMBTBD/Yu4ce85UJE93UikJd8Y/zoy1Ab5QnghNeO9ndmUF5HdGj 2/fFfbPSb+baCd81fvPaqDAmmsC3ZTwxfRa/O9LN9JyuXdNiZ0BMBmi+D8sCtKvk vhulzCuFtlFkbjbLOgC3 =OCRS -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--