From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.142.50.5 with SMTP id x5cs23702wfx; Sun, 19 Jun 2011 13:44:34 -0700 (PDT) Received: by 10.229.136.208 with SMTP id s16mr3428576qct.134.1308516273770; Sun, 19 Jun 2011 13:44:33 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id j1si6348805qcu.201.2011.06.19.13.44.33; Sun, 19 Jun 2011 13:44:33 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 515EB185838E; Sun, 19 Jun 2011 16:44:33 -0400 (EDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by rubyforge.org (Postfix) with ESMTP id 59E14185836C for ; Sun, 19 Jun 2011 16:44:24 -0400 (EDT) Received: by pzk2 with SMTP id 2so3789621pzk.23 for ; Sun, 19 Jun 2011 13:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to:cc :content-type; bh=NjyuRptCTHwwjV5hhlE6sBKY5e9J01SCm5vjxB6Q/bg=; b=N/sR23BwQZ1ZpAyDanVrbTxV5EKURD18zOTAOStCOb9K3l3wL9RBdHhnBZTTzJiYW9 E4aWJaHJReez44RSrZIfMmVT0FSFbxiihxrlENcXmsz201+eP9ZuC4bMnlqbe98XM1yt Ags21dA9SAROv01H0OvP9roRBk4OagYufUrQ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=KhnY2iF9KqIAPaOQCZwEupSmgJIetQBaMCgduzioBhVVHp3M/j2jZTY4QFalH694T9 kgirneMmGT95raRoNOTgD337c6NF+mwdmkE+KkTsHKrzCtu3xhYIuSC/goDMxcesLAJu M5OPCGbvJSUChQa/n1PoBLzu35m1Ezf+6KWXM= Received: by 10.68.39.38 with SMTP id m6mr1891598pbk.150.1308516264548; Sun, 19 Jun 2011 13:44:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.51.170 with HTTP; Sun, 19 Jun 2011 13:44:09 -0700 (PDT) From: Vivien Didelot Date: Sun, 19 Jun 2011 16:44:09 -0400 Message-ID: To: wmorgan-sup@masanjin.net Cc: notmuch@notmuchmail.org, Sup developer discussion Subject: [sup-devel] Turn Turnsole into a generic mail client X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1850998406==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============1850998406== Content-Type: multipart/alternative; boundary=bcaec520e8cf21984204a616aff1 --bcaec520e8cf21984204a616aff1 Content-Type: text/plain; charset=ISO-8859-1 Hi William and others, 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, which implements the necessary abstract methods for the interface, and which needs to be included in every client adapters (like DataMapper adapters are working for instance). Built-in Turnsole adapters would be in lib/turnsole/client/. That way, we could easily implement Turnsole adapters for many sources, such as: Heliotrope (for sure, the official adapter), IMAP (direct connection), Gmail (simpler adapter using the IMAP adapter), Maildir/Mbox, NotMuchMail (which is a great Sup-like email back-end), upasfs, etc. The main reason why I'm posting that, is that I really like the Turnsole ncurses based interface, but sometimes I'd like to check emails directly from imap (when not on my computer for instance). I also know that NotMuch is missing a good ncurses-based client (that's why I've Cc'd them). What do you think? Is there limitations I didn't think about? -- Vivien Didelot, vivien.didelot.org --bcaec520e8cf21984204a616aff1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi William and others,

As Turnsole is a great mail interface, I was = thinking about having it generic to multiple servers or mail sources, to fi= t 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,
which implements the necessary abstract methods for the interface, and whic= h needs to be included in every client adapters (like DataMapper adapters a= re working for instance).
Built-in Turnsole adapters would be in lib/tur= nsole/client/. That way, we could easily implement Turnsole adapters for ma= ny sources, such as:
Heliotrope (for sure, the official adapter),
IMAP (direct connection),Gmail (simpler adapter using the IMAP adapter),
Maildir/Mbox,
NotMu= chMail (which is a great Sup-like email back-end),
upasfs,
etc.

The main reason why I'm posting that, is that I really like the Tur= nsole ncurses based interface,
but sometimes I'd like to check email= s directly from imap (when not on my computer for instance).
I also know= that NotMuch is missing a good ncurses-based client (that's why I'= ve Cc'd them).

What do you think? Is there limitations I didn't think about?

--
Vivien Didelot,
vivien.didelot.org
--bcaec520e8cf21984204a616aff1-- --===============1850998406== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============1850998406==--