Re: Alternative to no longer supported folder:foo* wildcard matching ?
authorDavid Bremner <david@tethera.net>
Mon, 9 Mar 2015 22:06:31 +0000 (23:06 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:24 +0000 (14:48 -0700)
8f/5f5114e1ab3d6219de2ad967b99450b73c906c [new file with mode: 0644]

diff --git a/8f/5f5114e1ab3d6219de2ad967b99450b73c906c b/8f/5f5114e1ab3d6219de2ad967b99450b73c906c
new file mode 100644 (file)
index 0000000..f7fdab1
--- /dev/null
@@ -0,0 +1,85 @@
+Return-Path: <david@tethera.net>\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 100DC431FC7\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Mar 2015 15:07:37 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 1TuwhfAC3GWD for <notmuch@notmuchmail.org>;\r
+       Mon,  9 Mar 2015 15:07:33 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+       [87.98.215.224])\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 BBBB6431FBD\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Mar 2015 15:07:33 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+       4.80) (envelope-from <david@tethera.net>)\r
+       id 1YV5oz-0006Ys-BG; Mon, 09 Mar 2015 22:06:45 +0000\r
+Received: (nullmailer pid 1066 invoked by uid 1000); Mon, 09 Mar 2015\r
+       22:06:31 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Jean-Marc Liotier <jm@liotier.org>, notmuch@notmuchmail.org\r
+Subject: Re: Alternative to no longer supported folder:foo* wildcard matching\r
+ ?\r
+In-Reply-To: <54FDFAAB.9080504@liotier.org>\r
+References: <54FDFAAB.9080504@liotier.org>\r
+User-Agent: Notmuch/0.19+67~gdbe9924 (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 09 Mar 2015 23:06:31 +0100\r
+Message-ID: <877fupzuzc.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\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: Mon, 09 Mar 2015 22:07:37 -0000\r
+\r
+Jean-Marc Liotier <jm@liotier.org> writes:\r
+\r
+>\r
+> So nowadays, is there any other way to express "this folder and all its \r
+> subfolders" ? The path: keyword does not seem useful for that with a \r
+> maildir with a flat structure of dot.delimited.directories - or is there \r
+> something like a dot.delimited.* wildcard ?\r
+>\r
+\r
+One option is to create symlink farm. Since it's only directories being\r
+symlinked, it isn't that bad.  I don't know how well this scales, but it\r
+seems to work for about 200k messages in 184 mailing lists. Roughly\r
+speaking:\r
+\r
+% mkdir list\r
+% cd list\r
+% ln -s ../.list.* .\r
+% mmv .list.* *  # zsh specific, optional\r
+% notmuch new\r
+\r
+Notmuch new took about 10 minutes, but now I can search\r
+\r
+'path:list/**'\r
+\r
+to add a second level\r
+\r
+% mkdir debian\r
+% cd debian\r
+% ln -s ../debian-* .\r
+% notmuch new\r
+\r
+Of course this could be scripted.\r