[notmuch] Quick thoughts on a notmuch daemon
authorCarl Worth <cworth@cworth.org>
Thu, 3 Dec 2009 22:27:05 +0000 (14:27 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:49 +0000 (09:35 -0800)
c2/9afff7851f6d9c26e59c0325d8f0179dc1c475 [new file with mode: 0644]

diff --git a/c2/9afff7851f6d9c26e59c0325d8f0179dc1c475 b/c2/9afff7851f6d9c26e59c0325d8f0179dc1c475
new file mode 100644 (file)
index 0000000..13192f0
--- /dev/null
@@ -0,0 +1,81 @@
+Return-Path: <cworth@cworth.org>\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 006B3431FBC\r
+       for <notmuch@notmuchmail.org>; Thu,  3 Dec 2009 14:27:07 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 xmfBq65oVEYH for <notmuch@notmuchmail.org>;\r
+       Thu,  3 Dec 2009 14:27:06 -0800 (PST)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 23F6F431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  3 Dec 2009 14:27:06 -0800 (PST)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id B99482542FB; Thu,  3 Dec 2009 14:27:05 -0800 (PST)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Notmuch list <notmuch@notmuchmail.org>\r
+Date: Thu, 03 Dec 2009 14:27:05 -0800\r
+Message-ID: <874oo7hex2.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Subject: [notmuch] Quick thoughts on a notmuch daemon\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Thu, 03 Dec 2009 22:27:07 -0000\r
+\r
+--=-=-=\r
+\r
+Here's a little idea in case someone wants to write some code before I\r
+get around to it.\r
+\r
+Two current problems:\r
+\r
+  1. You can't read mail (updating tags, etc.) at the same time new mail\r
+     is being incorporated to the database. So if you have "notmuch new"\r
+     as a cron job, then you will sometimes see "failed to obtain write\r
+     lock" in emacs.\r
+\r
+  2. Lots of people want to interact with a notmuch database on a remote\r
+     server, for obvious reasons.\r
+\r
+A simple solution would be a notmuch daemon that can accept commands on\r
+stdin, (in basically the exact same form as the current notmuch\r
+command-line interface). If the daemon does the job of periodically\r
+incorporating new mail, then the only command necessary to solve (1)\r
+above would be the tag command.\r
+\r
+But with the other commands in place, (such as search and show), then\r
+this could operate over ssh and all that would be necessary is one\r
+additional command not in the current command line, (for "give me this\r
+file"). And then the client could just maintain a local cache of mail\r
+files as needed.\r
+\r
+So that might be a nice project for somebody, and would likely be very\r
+useful for many people.\r
+\r
+-Carl\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFLGDs56JDdNq8qSWgRAsbzAKCUgls2BGlhNkM5yAMLi0N3s5xvegCeIOq3\r
+l+cPVUCmjZIYSep6G2HToFg=\r
+=48W1\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r