unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Ruben Pollan <meskio@sindominio.net>
To: Carl Worth <cworth@cworth.org>
Cc: Notmuch list <notmuch@notmuchmail.org>
Subject: Re: Quick thoughts on a notmuch daemon
Date: Sat, 20 Feb 2010 02:09:24 +0100	[thread overview]
Message-ID: <20100220010924.GD17814@blackspot> (raw)
In-Reply-To: <874oo7hex2.fsf@yoom.home.cworth.org>

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

I started to code something base on your idea of a notmuch daemon. You can find
it on:
git://gitorious.org/notsomuch/notmuch.git
On the server branch.

The idea is to use unix named sockets to intercomunicate between the daemon and the
client. And threads on the server to handle every request. The implementation is 
no great, it's a fast hack. It can only handle one request per connection and breaks 
some times on concurrent request. But I hope helps to see the idea.

I implemented both, daemon and client in the same binary. So you can still run
as before:
$ notmuch search inbox
If the daemon is already running (so the socket is in MAILDIR_PATH/.notmuch/socket) 
it will connect to it and ask for the search. If is not running will fork
creating it and send it the search.

Up to now the comunication between daemon and client is with the same syntax of
notmuch. But I think will be a nice idea to use JSON (or some other
computer-friendly syntax) and convert it to human readable on the client.

What do you think about that approach? Will it fit on what you imagined or is it
to far?

I'm not sure if that is adding to much complexity to notmuch or is a good idea.

-- 
Rubén Pollán  | jabber:meskio@jabber.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nos vamos a Croatan.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      parent reply	other threads:[~2010-02-20  1:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 22:27 Quick thoughts on a notmuch daemon Carl Worth
2009-12-07 19:02 ` David Bremner
2009-12-07 22:55   ` Marten Veldthuis
2009-12-07 23:51     ` micah anderson
2009-12-08  7:01       ` Carl Worth
2010-01-08  2:56         ` martin f krafft
2010-01-08  8:06           ` Mike Hommey
2010-01-08  9:03             ` martin f krafft
2010-01-08  9:20               ` Mike Hommey
2010-01-08 10:26                 ` martin f krafft
2010-01-09  5:51                   ` Mike Hommey
2009-12-08 19:29 ` Michiel Buddingh'
2009-12-09 22:13 ` Ruben Pollan
2010-02-20  1:09 ` Ruben Pollan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100220010924.GD17814@blackspot \
    --to=meskio@sindominio.net \
    --cc=cworth@cworth.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).