Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A5297431FBD for ; Tue, 8 Dec 2009 11:29:12 -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 tQv-Bz8xfNjN for ; Tue, 8 Dec 2009 11:29:12 -0800 (PST) Received: from aegir.org.uk (aegir.org.uk [87.238.170.13]) by olra.theworths.org (Postfix) with ESMTP id 6DF15431FAE for ; Tue, 8 Dec 2009 11:29:12 -0800 (PST) Received: from localhost (109-9-ftth.onsnetstudenten.nl [145.120.9.109]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by aegir.org.uk (Postfix) with ESMTPSA id BBF402E01B; Tue, 8 Dec 2009 20:29:03 +0100 (CET) From: Michiel Buddingh' To: Carl Worth , Notmuch list In-Reply-To: <874oo7hex2.fsf@yoom.home.cworth.org> References: <874oo7hex2.fsf@yoom.home.cworth.org> Date: Tue, 08 Dec 2009 20:29:02 +0100 Message-ID: <87638hjmdd.fsf@aegir.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] 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: Tue, 08 Dec 2009 19:29:12 -0000 On Thu, 03 Dec 2009 14:27:05 -0800, Carl Worth wrote: > 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. If you add a second pipe for notmuch to broadcast information about events (such as new mail being indexed) you could farm out most of the logic that will increasingly clutter up notmuch-new.c to an external daemon. Just the mailid and path would be enough for people to implement their own tagging based on directory, Maildir flags or (for all I care) Bayesian content filtering with relative ease. Just a thought -- Michiel Buddingh'