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