[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 8f / 5f5114e1ab3d6219de2ad967b99450b73c906c
1 Return-Path: <david@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 100DC431FC7\r
6         for <notmuch@notmuchmail.org>; Mon,  9 Mar 2015 15:07:37 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 1TuwhfAC3GWD for <notmuch@notmuchmail.org>;\r
16         Mon,  9 Mar 2015 15:07:33 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224])\r
19         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id BBBB6431FBD\r
22         for <notmuch@notmuchmail.org>; Mon,  9 Mar 2015 15:07:33 -0700 (PDT)\r
23 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
24         4.80) (envelope-from <david@tethera.net>)\r
25         id 1YV5oz-0006Ys-BG; Mon, 09 Mar 2015 22:06:45 +0000\r
26 Received: (nullmailer pid 1066 invoked by uid 1000); Mon, 09 Mar 2015\r
27         22:06:31 -0000\r
28 From: David Bremner <david@tethera.net>\r
29 To: Jean-Marc Liotier <jm@liotier.org>, notmuch@notmuchmail.org\r
30 Subject: Re: Alternative to no longer supported folder:foo* wildcard matching\r
31  ?\r
32 In-Reply-To: <54FDFAAB.9080504@liotier.org>\r
33 References: <54FDFAAB.9080504@liotier.org>\r
34 User-Agent: Notmuch/0.19+67~gdbe9924 (http://notmuchmail.org) Emacs/24.4.1\r
35         (x86_64-pc-linux-gnu)\r
36 Date: Mon, 09 Mar 2015 23:06:31 +0100\r
37 Message-ID: <877fupzuzc.fsf@maritornes.cs.unb.ca>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Mon, 09 Mar 2015 22:07:37 -0000\r
53 \r
54 Jean-Marc Liotier <jm@liotier.org> writes:\r
55 \r
56 >\r
57 > So nowadays, is there any other way to express "this folder and all its \r
58 > subfolders" ? The path: keyword does not seem useful for that with a \r
59 > maildir with a flat structure of dot.delimited.directories - or is there \r
60 > something like a dot.delimited.* wildcard ?\r
61 >\r
62 \r
63 One option is to create symlink farm. Since it's only directories being\r
64 symlinked, it isn't that bad.  I don't know how well this scales, but it\r
65 seems to work for about 200k messages in 184 mailing lists. Roughly\r
66 speaking:\r
67 \r
68 % mkdir list\r
69 % cd list\r
70 % ln -s ../.list.* .\r
71 % mmv .list.* *  # zsh specific, optional\r
72 % notmuch new\r
73 \r
74 Notmuch new took about 10 minutes, but now I can search\r
75 \r
76 'path:list/**'\r
77 \r
78 to add a second level\r
79 \r
80 % mkdir debian\r
81 % cd debian\r
82 % ln -s ../debian-* .\r
83 % notmuch new\r
84 \r
85 Of course this could be scripted.\r