Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 2b / 0af1666d9250522d29cb9cab4d2160d20ac5ed
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 8C466431FAF\r
6         for <notmuch@notmuchmail.org>; Tue, 10 Mar 2015 00:11:43 -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 Rc8g8N-UQnHV for <notmuch@notmuchmail.org>;\r
16         Tue, 10 Mar 2015 00:11:40 -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 0C2F4431FAE\r
22         for <notmuch@notmuchmail.org>; Tue, 10 Mar 2015 00:11:40 -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 1YVEJT-0000nJ-86; Tue, 10 Mar 2015 07:10:47 +0000\r
26 Received: (nullmailer pid 7677 invoked by uid 1000); Tue, 10 Mar 2015\r
27         07:10:33 -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: <54FE37F4.7090605@liotier.org>\r
33 References: <54FDFAAB.9080504@liotier.org>\r
34         <877fupzuzc.fsf@maritornes.cs.unb.ca> <54FE37F4.7090605@liotier.org>\r
35 User-Agent: Notmuch/0.19+67~gdbe9924 (http://notmuchmail.org) Emacs/24.4.1\r
36         (x86_64-pc-linux-gnu)\r
37 Date: Tue, 10 Mar 2015 08:10:33 +0100\r
38 Message-ID: <87a8zlxr86.fsf@maritornes.cs.unb.ca>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain; charset=utf-8\r
41 Content-Transfer-Encoding: quoted-printable\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Tue, 10 Mar 2015 07:11:43 -0000\r
55 \r
56 Jean-Marc Liotier <jm@liotier.org> writes:\r
57 \r
58 >\r
59 > % cd ~/Maildir\r
60 > % mkdir .NM_myTopLevelFolder\r
61 > % ln -rs .myTopLevelFolder* -t .NM_myTopLevelFolder\r
62 \r
63 This is doing one level of links. If you want more hierarchy\r
64 you'll have to create subdirectories with links to only some of your\r
65 folders. In fact the NM_myTopLevelFolder doesn't seem useful to me,\r
66 since you don't gain any new queries that way.\r
67 \r
68 So if you have .foo.*  and .bar.*, I would\r
69 \r
70 mkdir foo\r
71 ln -rs .foo.* -t foo\r
72 mkdir bar\r
73 ln -rs .bar.* -t bar\r
74 \r
75 > On the downside:\r
76 > - It doubles the number of messages to index (though then even=20\r
77 > multiplied by two, my 300k messages are Not Much Mail=E2=84=A2 - but stil=\r
78 l...)\r
79 \r
80 Conceivably this has to do with duplicating the top level folder, not\r
81 sure; I don't see an increase. In particular I don't see in increase in\r
82 the output of "notmuch count", so in notmuch jargon, the number of\r
83 _messages_ does not increase but rather the number of _files_. There\r
84 will obviously be some growth in the database size, but there was\r
85 nothing too shocking in my experiments (I didn't measure carefully, but\r
86 my database is still at around 30% of the raw mail size)\r
87 \r
88 > - myTopLevelFolder gets a NM_myTopLevelFolder twin and restricting the=20\r
89 > search scope to it requires using its twin's name\r
90 \r
91 yes, I suppose that's true. But for "nice" symlink names this doesn't\r
92 seem so terrible. But *shrug* it's a matter of taste.\r
93 \r
94 > - The additional messages are duplicates, so --remove-dups becomes=20\r
95 > mandatory in any search query\r
96 \r
97 Based on the name, I'd suspect "remove-dups" corresponds roughly to the\r
98 default behaviour of notmuch in reporting results.\r
99 \r
100 > - This method is good for restricting the search scope to a directory,\r
101 > but not for excluding a directory from the search scope... Which alas\r
102 > is what I desire most...\r
103 \r
104 Either I don't understand what you want, or this might again be\r
105 something to do with notmuch-mutt. For me, queries like\r
106 \r
107         notmuch count not 'path:list/**'=20\r
108 \r
109 and\r
110         notmuch count not 'path:list/**' and from:bremner\r
111 \r
112 work as expected.\r
113 \r
114 Hope this helps,\r
115 \r
116 d\r