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 1B403431FD0 for ; Sun, 19 Jun 2011 15:14:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 Fmkl+VL8AHbI for ; Sun, 19 Jun 2011 15:14:23 -0700 (PDT) X-Greylist: delayed 1328 seconds by postgrey-1.32 at olra; Sun, 19 Jun 2011 15:14:23 PDT Received: from masanjin.net (masanjin.net [209.20.72.13]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 585C6431FB6 for ; Sun, 19 Jun 2011 15:14:23 -0700 (PDT) Received: from w by masanjin.net with local (Exim 4.71) (envelope-from ) id 1QYQ43-0003rD-4f; Sun, 19 Jun 2011 22:01:55 +0000 Content-Type: text/plain; charset=UTF-8 Subject: Re: Turn Turnsole into a generic mail client From: William Morgan To: Vivien Didelot In-reply-to: References: Date: Sun, 19 Jun 2011 22:01:55 +0000 Message-Id: <1308520505-sup-4762@masanjin.net> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 20 Jun 2011 15:19:13 -0700 Cc: notmuch , Sup developer discussion 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, 19 Jun 2011 22:14:24 -0000 Hi Vivien, Reformatted excerpts from Vivien Didelot's message of 2011-06-19: > As Turnsole is a great mail interface, I was thinking about having it > generic to multiple servers or mail sources, to fit many use cases. > > Explicitely, the Turnsole::Client class ( > https://github.com/wmorgan/turnsole/blob/master/lib/turnsole/client.rb) > could be turned into a Turnsole::Client module instead, The server portion of turnsole, heliotrope, is explicitly designed to support multiple clients and provides a JSON-over-HTTP interface for that purpose. The specifics of the protocol are still subject to change, but see e.g. https://github.com/wmorgan/heliotrope/blob/master/lib/heliotrope-client.rb for the ruby client that turnsole uses to communicate with the server. -- William