Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1B297431FAF for ; Fri, 7 Dec 2012 22:28:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mRQKWbzv7B1w for ; Fri, 7 Dec 2012 22:28:01 -0800 (PST) Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by olra.theworths.org (Postfix) with ESMTP id 8031C431FAE for ; Fri, 7 Dec 2012 22:28:01 -0800 (PST) X-AuditID: 12074425-b7f606d0000008ea-77-50c2ddf12cda Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 4C.1E.02282.1FDD2C05; Sat, 8 Dec 2012 01:28:01 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id qB86Rx4h002158; Sat, 8 Dec 2012 01:28:00 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qB86RuQd028705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 8 Dec 2012 01:27:59 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) (envelope-from ) id 1ThDtE-0000NH-9C; Sat, 08 Dec 2012 01:27:56 -0500 Date: Sat, 8 Dec 2012 01:27:56 -0500 From: Austin Clements To: Tomi Ollila Subject: Re: Tags with spaces Message-ID: <20121208062739.GG4422@mit.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupileLIzCtJLcpLzFFi42IR4hRV1v1491CAwbTDrBYPrkpZXL85k9ni zcp5rA7MHoe/LmTxeLbqFrPH5L9PmQOYo7hsUlJzMstSi/TtErgyjj5rYinoYav49re4gfET SxcjJ4eEgInE040HoGwxiQv31rN1MXJxCAnsY5S4/e4FM0hCSGA9o8TJOywQiQtMEo+fToRy ljBKtC98xgpSxSKgIvG4sYERxGYT0JDYtn85mC0CFH/Qth6shlnAWWLSnttg64QFZCVmrG0B s3kFtCUmfdoIVM8BNLRMYu56T4iwoMTJmU9YIFq1JG78e8kEUsIsIC2x/B8HSJhTwEDixvVT YCWiQJumnNzGNoFRaBaS7llIumchdC9gZF7FKJuSW6Wbm5iZU5yarFucnJiXl1qka6GXm1mi l5pSuokRFOTsLqo7GCccUjrEKMDBqMTDe0PkUIAQa2JZcWXuIUZJDiYlUV7fm0AhvqT8lMqM xOKM+KLSnNTiQ4wSHMxKIryrtgHleFMSK6tSi/JhUtIcLErivDdSbvoLCaQnlqRmp6YWpBbB ZGU4OJQkeL/eBmoULEpNT61Iy8wpQUgzcXCCDOcBGt52B2R4cUFibnFmOkT+FKOilDivBEiz AEgiozQPrheWhF4xigO9IszLBExJQjzABAbX/QpoMBPQ4Cj2/SCDSxIRUlINjPVhZq9nalVc WZmkN3G3fXSdzZ3524xSp1s/eLgj86OK7/7L6RHbYp91HRJf+HX2s7qLq5xPMFRNNdnpLVbD 4BAY0ayw/3rU/Pd2j6dHLYkrU8r0urR358z/Nt28bCky0eWxD3/828x+9qciC6fV9SzzeQdf nnIziVFXEFuuku6+T/nO+boHskosxRmJhlrMRcWJAEyDazcdAwAA Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 08 Dec 2012 06:28:02 -0000 Quoth Tomi Ollila on Dec 08 at 8:21 am: > On Sat, Dec 08 2012, "Jason A. Donenfeld" wrote: > > > Do we support them? Are we going to? > > > > This doesn't work: > > notmuch search -tag:"This has spaces" > > > > Nor does: > > notmuch search "-tag:This has spaces" > > This might work: > > notmuch search "-tag:'This has spaces'" Xapian's query parser doesn't recognize single quotes, unfortunately. When in doubt, $ NOTMUCH_DEBUG_QUERY=1 notmuch search '-tag:"This tag has spaces"' Final query is: Xapian::Query((Tmail AND 0 * KThis tag has spaces)) $ NOTMUCH_DEBUG_QUERY=1 notmuch search "-tag:'This tag has spaces'" Final query is: Xapian::Query((Tmail AND ((Ztag:(pos=1) AND Zhas:(pos=2) AND Zspace:(pos=3)) AND_NOT K'This)))