Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / bd / e85f7034af042e0c4ee586dd754edf6730775f
1 Return-Path: <bremner@unb.ca>\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 EB01E429E25\r
6         for <notmuch@notmuchmail.org>; Sat, 10 Dec 2011 19:27:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 OuUN2QPigetJ for <notmuch@notmuchmail.org>;\r
16         Sat, 10 Dec 2011 19:27:17 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 04A32431FB6\r
21         for <notmuch@notmuchmail.org>; Sat, 10 Dec 2011 19:27:16 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBB3RDGb015857\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sat, 10 Dec 2011 23:27:15 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@unb.ca>)\r
30         id 1RZa4G-0007dw-RZ; Sat, 10 Dec 2011 23:27:12 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: experimental logging branch\r
34 User-Agent: Notmuch/0.10.2+80~g144897e (http://notmuchmail.org) Emacs/23.3.1\r
35         (x86_64-pc-linux-gnu)\r
36 Date: Sat, 10 Dec 2011 23:27:02 -0400\r
37 Message-ID: <87obvfu6t5.fsf@zancas.localnet>\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/signed; boundary="=-=-=";\r
40         micalg=pgp-sha1; protocol="application/pgp-signature"\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 11 Dec 2011 03:27:18 -0000\r
54 \r
55 --=-=-=\r
56 Content-Transfer-Encoding: quoted-printable\r
57 \r
58 \r
59 I have pushed a branch jlog=20\r
60 \r
61   git://pivot.cs.unb.ca/notmuch.git\r
62 \r
63 This uses the jlog library (http://labs.omniti.com/labs/jlog)\r
64 to atomically log messages in pub-sub model.\r
65 \r
66 On this branch you can enable logging of tagging operations by=20\r
67 \r
68    notmuch config set log.subscribers 'name1;name2;name3'\r
69 \r
70 the "subscriber names" identify clients (one could imagine one client\r
71 deals with general tag syncing, another with nmbug, or so).\r
72 =20=20\r
73 One can read the log via the jlog api (there are perl bindings) or via\r
74 the "notmuch log" command.=20\r
75 \r
76     notmuch log name1=20\r
77 \r
78 will print all of the log messages since the last time the queue was\r
79 read.\r
80 \r
81 for e.g., tag removal, these lines look like\r
82 \r
83 T-1322702130-26068-3-git-send-email-bremner@debian.org test\r
84 T-1322702130-26068-1-git-send-email-bremner@debian.org test\r
85 T-7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org t=\r
86 est\r
87 T-716da00e176e1dc6af0ba248caee40acee733120.1322859389.git.jani@nikula.org t=\r
88 est\r
89 \r
90 An example application would be a cron job that writes all tag changes\r
91 to some nmbug like git repo.\r
92 \r
93 There are a few rough edges and I expect to rebase the branch a bit\r
94 more, but feel free to have a look at it.  I guess I'm curious if people\r
95 think jlog is an acceptable dependency, and whether the whole logging\r
96 thing seems worthwhile.=20\r
97 \r
98 I did some preliminary tests, and for adding or deleting a tag to 200k\r
99 messages, this added about a 5% time penalty. I didn't notice any really\r
100 heavy I/O (no SSD here, but i7 cpu). Tests were roughly 95% CPU bound.\r
101 \r
102 There are some preliminary debian packages for jlog at=20\r
103 \r
104       git://pivot.cs.unb.ca/jlog.git\r
105 \r
106 The upstream source for jlog is at=20\r
107 =20=20=20=20\r
108     https://github.com/omniti-labs/jlog\r
109 \r
110 \r
111 \r
112 \r
113 --=-=-=\r
114 Content-Type: application/pgp-signature\r
115 \r
116 -----BEGIN PGP SIGNATURE-----\r
117 Version: GnuPG v1.4.11 (GNU/Linux)\r
118 \r
119 iJwEAQECAAYFAk7kIwYACgkQTiiN/0Um85m4rwP9FTTbhlez2RsSXjqd1tue9C/c\r
120 ai8mG2Bo6Dx+fmwL8Kz/+QT7y7ySziIIB0LhwdncRIUfy+Yk6SFXB2EDU+WsIppW\r
121 pkeGGDJ4peFQx4OJT9aWkaVesl8UYrJsY5KBS5a8Umadq4hwKCZmnzxFySFsmkqF\r
122 7GVFOJvJztFWIDS7u4Q=\r
123 =XE6Q\r
124 -----END PGP SIGNATURE-----\r
125 --=-=-=--\r