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 22D7E431FB6 for ; Sun, 20 Mar 2011 11:01:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 lyNiaLyQFfvu for ; Sun, 20 Mar 2011 11:01:23 -0700 (PDT) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 59C5A431FB5 for ; Sun, 20 Mar 2011 11:01:23 -0700 (PDT) Received: by qwc9 with SMTP id 9so4052026qwc.26 for ; Sun, 20 Mar 2011 11:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XIO3zVbXnyrFGbwhzMfj5yvBZQmTY4hDJtiFy1sLT8A=; b=rHzZcFUO8GwUZEArtMRJnybEoEmDZ7bqtO8f9cT5+VJDZ0iQr2wy2mVePLta2uxv/R azJArAlYGe9D0/iT0T0lZc3CwXOGUm1b0iH0SAqzqc2FJh19pJzwX7q06HQO3V+ogFMB ll/QOyOmcQwtHbTsjU9Pm8djDunD4XJoeM4ks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=b+0RaCY5K4sr2u/DShBltrGncoflsAHOVCfikDpepmB2LG0G6cLVpDtDLw/R9TJ/UM IM9i1lWRUwiHV9Xvln33/sURgAbtqw7Hnj4vP2TY7V4/B4m9eX36Z6l8XfDagqBOat77 jG3S8cwFYLRGzu6S/12dTuTGMtZQKWWF4EgP4= MIME-Version: 1.0 Received: by 10.224.130.14 with SMTP id q14mr2603451qas.250.1300644080875; Sun, 20 Mar 2011 11:01:20 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.30.68 with HTTP; Sun, 20 Mar 2011 11:01:20 -0700 (PDT) In-Reply-To: References: Date: Sun, 20 Mar 2011 14:01:20 -0400 X-Google-Sender-Auth: QVGx3v5aLkL__-LsApwnjQB9t04 Message-ID: Subject: Re: RFC: notmuch powered (personal) (end-to-end) e-mail system From: Austin Clements To: Ciprian Dorin Craciun Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sun, 20 Mar 2011 18:01:24 -0000 Much of the beauty of notmuch is how few assumptions it makes about your mail system. It plays well with others. For example, one deep insight of notmuch is that it *doesn't* require a custom mail store, even though a more obvious design might; in fact, it doesn't even require Maildir. That said, I think I can see where you're coming from and I also think you're targeting some of the deficiencies of notmuch, but I also think you're overengineering the solution. As a result of notmuch's simplicity, a fully working mail setup requires a lot of moving parts besides notmuch and it can take a while for a new user to set all that up, especially if they're migrating wholesale from some external mail setup. On Sun, Mar 20, 2011 at 10:07 AM, Ciprian Dorin Craciun wrote: > =A0 =A0As such I'm thinking on implementing a custom end-to-end email > system and I would like to hear your feedback before embarking on such > a task. > > =A0 =A0I'm targeting the following features: > =A0 =A0* (inbound) SMTP integration, thus once an email is received it is > automatically pushed through the system; (I'm primarily targeting > those users that afford to run their own SMTP server; but the solution > could still be adapted for those that only want the other features;) As others have mentioned, see notmuch-deliver. I and others have also suggested inotify support for notmuch before, which would make the inbound mail mechanism (be it SMTP, IMAP fetching, or whatever) completely unaware of notmuch, offer some other benefits (for example, if mail is manipulated outside notmuch via IMAP), and is highly discoverable for new users (just have notmuch setup ask if they want notmuch to monitor for new email and then fire up an inotify daemon the first time notmuch is called). > =A0 =A0* automatic spam filtering, and tag applying; > =A0 =A0* automatic email triggers based on tags (such as user > notifications, forwarding, etc.) Obviously the above two can be scripted, but I agree that it's unsatisfying that every user needs to roll their own delivery script. While tagging and triggering are highly personal, they're not *so* personal that everyone needs a completely custom solution. This should be more approachable. I'm not sure what the best answer here is, but I don't think it requires it requires integration with a monolithic system to do right. > =A0 =A0* remote RPC-like access to the whole system; This is another deep insight of notmuch. It already has an awesome RPC interface: the CLI. Perhaps your actual problem is that the only supported remote transport protocol is SSH. This comes with a lot of benefits (authentication, RPC pipelining), but also a lot of baggage (a full SSH client on the client side). I've thought about this in the context of both an HTTP client and an Android client and in both cases I concluded that a simple HTTPS transport wrapped around the notmuch CLI would be the way to go. Just put the CLI arguments in a POST and send the JSON on stdout back. This is trivial to prototype as a Python CGI script, easy to build as a standalone Python server, and not especially hard to build as a robust C server. > =A0 =A0* remote Web user interface; A good web UI would be fantastic. Based on the rest of your email, I get the impression this was a requirements driver from much of the above, especially the integrated tagging/triggering and RPC access. I've already suggested a simple solution to the RPC problem. For tagging/triggering, it's probably worth developing a solution that allows for machine-editable rules (ideally retaining user-editableness), which would make it possible to integrate filter management in to a web UI. This could be as simple as a standard delivery script that operates from some simple rule database.