Re: Inspired but need help searching folder names containing spaces
authorMatthew Lear <matt@bubblegen.co.uk>
Sat, 21 Feb 2015 00:53:43 +0000 (00:53 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:05 +0000 (14:48 -0700)
d7/be837f143501cbce97402596f86e644b3cfb8f [new file with mode: 0644]

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