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 E141F429E3D for ; Wed, 18 Feb 2015 00:10:35 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 2.438 X-Spam-Level: ** X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 xb+J2fJuMNLy for ; Wed, 18 Feb 2015 00:10:32 -0800 (PST) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 98F17429E27 for ; Wed, 18 Feb 2015 00:10:32 -0800 (PST) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1YNzVN-0007Gm-U2; Wed, 18 Feb 2015 07:57:09 +0000 Received: (nullmailer pid 17044 invoked by uid 1000); Wed, 18 Feb 2015 07:56:56 -0000 From: David Bremner To: Matthew Lear , notmuch@notmuchmail.org Subject: Re: Inspired but need help searching folder names containing spaces In-Reply-To: <54E3BAE1.1030004@bubblegen.co.uk> References: <54E3BAE1.1030004@bubblegen.co.uk> User-Agent: Notmuch/0.19+48~gb74ed1c (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Wed, 18 Feb 2015 08:56:56 +0100 Message-ID: <87pp97sldj.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 18 Feb 2015 08:10:36 -0000 Matthew Lear writes: > mail/maildir/ > =E2=94=9C=E2=94=80=E2=94=80 INBOX > =E2=94=9C=E2=94=80=E2=94=80 Deleted Items > ... > =E2=94=94=E2=94=80=E2=94=80 Sent Items > > > notmuch search 'folder:"Deleted Items"' > > .. throws up zero results. > Hmm. I tried to duplicate your situation here, and it works for me. Two things to try: 1) notmuch search --output=3Dfiles $QUERY where $QUERY is some query (using e.g. id:) that matches one of those messages. Check that you have have the whole anchored path from the top level. 2) NOTMUCH_DEBUG_QUERY=3D1 notmuch count -'folder:"Deleted Items"' have a look for XFOLDER:Deleted Items 3) try both of the above with "--exclude=3Dfalse" in case you have tagged them with an excluded tag. Note that by default "deleted" is such a tag. You can change the excluded tags with "notmuch config" d