From: Matthew Lear Date: Sat, 21 Feb 2015 00:53:43 +0000 (+0000) Subject: Re: Inspired but need help searching folder names containing spaces X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2bf64b40ba3f0e6e83244bc312fa4b0f53710050;p=notmuch-archives.git Re: Inspired but need help searching folder names containing spaces --- diff --git a/d7/be837f143501cbce97402596f86e644b3cfb8f b/d7/be837f143501cbce97402596f86e644b3cfb8f new file mode 100644 index 000000000..900c1c1cf --- /dev/null +++ b/d7/be837f143501cbce97402596f86e644b3cfb8f @@ -0,0 +1,134 @@ +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 D54F5431FDB + for ; Fri, 20 Feb 2015 09:12:10 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.738 +X-Spam-Level: * +X-Spam-Status: No, score=1.738 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, 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 QdZby9P2c4bA for ; + Fri, 20 Feb 2015 09:12:07 -0800 (PST) +X-Greylist: delayed 455 seconds by postgrey-1.32 at olra; + Fri, 20 Feb 2015 09:12:07 PST +Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 67BA1431FD6 + for ; Fri, 20 Feb 2015 09:12:07 -0800 (PST) +Received: from webmail04.plus.net ([84.93.228.66]) by avasout07 with smtp + id ugtj1p0021SbfYc01gtja8; Fri, 20 Feb 2015 16:53:50 +0000 +X-CM-Score: 0.00 +X-CNFS-Analysis: v=2.1 cv=TqhohVnh c=1 sm=1 tr=0 + a=C5+YawzV8SR07mwocaP9vA==:117 a=G4bc5lkgapKKm1P+Twxy3Q==:17 + a=0Bzu9jTXAAAA:8 + a=fne2aKG5GRsA:10 a=wPDyFdB5xvgA:10 a=8nJEP1OIZ-IA:10 a=80hmnl3cAAAA:8 + a=0HtSIViG9nkA:10 a=PnT0uJPZukvO7PJKBHwA:9 a=wPNLvfGTeEIA:10 +Received: from localhost ([127.0.0.1] helo=webmail.plus.net) + by webmail04.plus.net with esmtp (Exim 4.76) + (envelope-from ) + id 1YOqpj-0006FQ-Nm; Fri, 20 Feb 2015 16:53:43 +0000 +Received: from 80.229.236.194 (SquirrelMail authenticated user bubblegen+matt) + by webmail.plus.net with HTTP; Fri, 20 Feb 2015 16:53:43 -0000 +Message-ID: +In-Reply-To: <87pp97sldj.fsf@maritornes.cs.unb.ca> +References: <54E3BAE1.1030004@bubblegen.co.uk> + <87pp97sldj.fsf@maritornes.cs.unb.ca> +Date: Fri, 20 Feb 2015 16:53:43 -0000 +Subject: Re: Inspired but need help searching folder names containing spaces +From: "Matthew Lear" +To: "David Bremner" +User-Agent: SquirrelMail +MIME-Version: 1.0 +Content-Type: text/plain;charset=iso-8859-1 +Content-Transfer-Encoding: 8bit +X-Priority: 3 (Normal) +Importance: Normal +X-Mailman-Approved-At: Fri, 20 Feb 2015 09:48:07 -0800 +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: matt@bubblegen.co.uk +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, 20 Feb 2015 17:12:11 -0000 + +Hi David, + +>> 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=files $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=1 notmuch count -'folder:"Deleted Items"' +> +> have a look for XFOLDER:Deleted Items +> +> 3) try both of the above with "--exclude=false" 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" + +As part of still playing around with notmuch and strategies for tagging +etc, I decided to start afresh with the database so I deleted it. After +running notmuch new, I could quite happily search with notmuch search +'folder:"Deleted Items"'. This surprised me greatly because I know that I +didn't apply any tags to mails in Deleted Items (couldn't find any in +there to tag) and I also already tried searching with --exclude=false. In +any case, it seems that searching in folders with spaces now works. Hurrah +:-) + +A couple of others things have surprised me, though. Using the date search +option, such as date:"today" or date:"yesterday", hasn't quite thrown up +what I expected. Searching with date:"today" shows up no results (which I +know is wrong) and searching with date:"yesterday" shows up a handful of +emails all from the same person, in different threads which all arrived on +a day in May 2014... Got to be a bug there somewhere :-D + +One last thing which I'd like to explore if I may is searching for emails +sent to me. By default, I think notmuch classes 'to me' as 'to or cc or +bcc me'. Is there a way to search/filter on emails sent only to me (ie +where my name / address is only in the to: field in the message header)? +This seems a reasonable requirement / use case so I'm assuming that +there's a good reason that notmuch views it differently. + +An example is an automated bug tracking system which sends emails to the +current assignee of the bug (to) and also watchers (cc). I'd like to be +able to filter these emails differently (ie bugs I'm watching versus bugs +I'm responsible for fixing). Apart from using other fields in the message +body (which may be subject to change), there doesn't seem an easy way to +do this which is surprising given notmuch's flexibility and power. + +Thoughts? + +I'm still exploring strategies for tagging and searching etc. The links on +the wiki are helpful. The possibilities are almost infinite and while +everybody's mail is different, having a great deal of flexibility can +sometimes makes it tricky to decide on exactly what's best. Still, it's an +enjoyable task, despite being time consuming, and is well worth the +effort. + + Matt +