Re: Plans for the 0.2 release (this week)
[notmuch-archives.git] / f4 / 5eb6223ade541a8eaacbff89849ea358adfec8
1 Return-Path: <meskio@sindominio.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 74688431FCF\r
6         for <notmuch@notmuchmail.org>; Fri, 19 Feb 2010 17:06:21 -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: -0.866\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.866 tagged_above=-999 required=5\r
12         tests=[AWL=-0.867, BAYES_50=0.001] autolearn=ham\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 8vbTO8cHo8C6 for <notmuch@notmuchmail.org>;\r
16         Fri, 19 Feb 2010 17:06:20 -0800 (PST)\r
17 Received: from flatline.sindominio.net (flatline.sindominio.net [82.144.4.26])\r
18         by olra.theworths.org (Postfix) with ESMTP id 922B8431FC7\r
19         for <notmuch@notmuchmail.org>; Fri, 19 Feb 2010 17:06:19 -0800 (PST)\r
20 Received: from localhost (localhost.localdomain [127.0.0.1])\r
21         by flatline.sindominio.net (Postfix) with ESMTP id 43AB9348027;\r
22         Sat, 20 Feb 2010 02:06:18 +0100 (CET)\r
23 X-Virus-Scanned: Debian amavisd-new at sindominio.net\r
24 Received: from flatline.sindominio.net ([127.0.0.1])\r
25         by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new,\r
26         port 10024)\r
27         with ESMTP id eLNqoTcEvbvh; Sat, 20 Feb 2010 02:06:15 +0100 (CET)\r
28 Received: from blackspot (a185042.upc-a.chello.nl [62.163.185.42])\r
29         by flatline.sindominio.net (Postfix) with ESMTPA id 5C74F348021;\r
30         Sat, 20 Feb 2010 02:06:15 +0100 (CET)\r
31 Received: by blackspot (Postfix, from userid 1000)\r
32         id A5D028BC02; Sat, 20 Feb 2010 02:09:24 +0100 (CET)\r
33 Date: Sat, 20 Feb 2010 02:09:24 +0100\r
34 From: Ruben Pollan <meskio@sindominio.net>\r
35 To: Carl Worth <cworth@cworth.org>\r
36 Message-ID: <20100220010924.GD17814@blackspot>\r
37 References: <874oo7hex2.fsf@yoom.home.cworth.org>\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/signed; micalg=pgp-sha1;\r
40         protocol="application/pgp-signature"; boundary="MnLPg7ZWsaic7Fhd"\r
41 Content-Disposition: inline\r
42 In-Reply-To: <874oo7hex2.fsf@yoom.home.cworth.org>\r
43 User-Agent: Mutt/1.5.20 (2009-06-14)\r
44 Cc: Notmuch list <notmuch@notmuchmail.org>\r
45 Subject: Re: [notmuch] Quick thoughts on a notmuch daemon\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sat, 20 Feb 2010 01:06:21 -0000\r
59 \r
60 \r
61 --MnLPg7ZWsaic7Fhd\r
62 Content-Type: text/plain; charset=iso-8859-1\r
63 Content-Disposition: inline\r
64 Content-Transfer-Encoding: quoted-printable\r
65 \r
66 I started to code something base on your idea of a notmuch daemon. You can =\r
67 find\r
68 it on:\r
69 git://gitorious.org/notsomuch/notmuch.git\r
70 On the server branch.\r
71 \r
72 The idea is to use unix named sockets to intercomunicate between the daemon=\r
73  and the\r
74 client. And threads on the server to handle every request. The implementati=\r
75 on is=20\r
76 no great, it's a fast hack. It can only handle one request per connection a=\r
77 nd breaks=20\r
78 some times on concurrent request. But I hope helps to see the idea.\r
79 \r
80 I implemented both, daemon and client in the same binary. So you can still =\r
81 run\r
82 as before:\r
83 $ notmuch search inbox\r
84 If the daemon is already running (so the socket is in MAILDIR_PATH/.notmuch=\r
85 /socket)=20\r
86 it will connect to it and ask for the search. If is not running will fork\r
87 creating it and send it the search.\r
88 \r
89 Up to now the comunication between daemon and client is with the same synta=\r
90 x of\r
91 notmuch. But I think will be a nice idea to use JSON (or some other\r
92 computer-friendly syntax) and convert it to human readable on the client.\r
93 \r
94 What do you think about that approach? Will it fit on what you imagined or =\r
95 is it\r
96 to far?\r
97 \r
98 I'm not sure if that is adding to much complexity to notmuch or is a good i=\r
99 dea.\r
100 \r
101 --=20\r
102 Rub=E9n Poll=E1n  | jabber:meskio@jabber.org\r
103 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=\r
104 =3D-=3D-=3D-=3D-=3D-\r
105 Nos vamos a Croatan.\r
106 \r
107 --MnLPg7ZWsaic7Fhd\r
108 Content-Type: application/pgp-signature; name="signature.asc"\r
109 Content-Description: Digital signature\r
110 Content-Disposition: inline\r
111 \r
112 -----BEGIN PGP SIGNATURE-----\r
113 Version: GnuPG v1.4.10 (GNU/Linux)\r
114 \r
115 iEYEARECAAYFAkt/NkQACgkQGKOQ92SwNMK1UACfUOZGNocy5az5VlKXaJltRVky\r
116 RVAAnjESHYZfHFWKg4ysX9tLigccOis4\r
117 =Olcn\r
118 -----END PGP SIGNATURE-----\r
119 \r
120 --MnLPg7ZWsaic7Fhd--\r