Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] Turn Turnsole into a generic mail client
@ 2011-06-19 20:44 Vivien Didelot
  2011-06-19 22:01 ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Vivien Didelot @ 2011-06-19 20:44 UTC (permalink / raw)
  To: wmorgan-sup; +Cc: notmuch, Sup developer discussion


[-- Attachment #1.1: Type: text/plain, Size: 1246 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1512 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-devel] Turn Turnsole into a generic mail client
  2011-06-19 20:44 [sup-devel] Turn Turnsole into a generic mail client Vivien Didelot
@ 2011-06-19 22:01 ` William Morgan
  2011-06-21 17:16   ` Vivien Didelot
  0 siblings, 1 reply; 4+ messages in thread
From: William Morgan @ 2011-06-19 22:01 UTC (permalink / raw)
  To: Vivien Didelot; +Cc: notmuch, Sup developer discussion

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 <wmorgan-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-devel] Turn Turnsole into a generic mail client
  2011-06-19 22:01 ` William Morgan
@ 2011-06-21 17:16   ` Vivien Didelot
  2011-06-21 20:33     ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Vivien Didelot @ 2011-06-21 17:16 UTC (permalink / raw)
  To: William Morgan; +Cc: notmuch, Sup developer discussion


[-- Attachment #1.1: Type: text/plain, Size: 1270 bytes --]

Hi William,

I'm not suggesting to make Heliotrope supports several clients (what it
already does via  provinding JSON),
I'm suggesting the make the Turnsole interface modulable to several mail
sources.
And its default and official one will be the Heliotrope client for sure.

I hope it is clearer.

On Sun, Jun 19, 2011 at 6:01 PM, William Morgan <wmorgan-sup@masanjin.net>wrote:

> 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 <wmorgan-sup@masanjin.net>
>



-- 
Vivien Didelot,
vivien.didelot.org

[-- Attachment #1.2: Type: text/html, Size: 2012 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-devel] Turn Turnsole into a generic mail client
  2011-06-21 17:16   ` Vivien Didelot
@ 2011-06-21 20:33     ` William Morgan
  0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2011-06-21 20:33 UTC (permalink / raw)
  To: Vivien Didelot; +Cc: notmuch, Sup developer discussion

Reformatted excerpts from Vivien Didelot's message of 2011-06-21:
> I'm suggesting the make the Turnsole interface modulable to several
> mail sources.

Oh, I see. Yes, to the extent that you can mimic what's in
Turnsole::Client, it will be possible. But that class is a pretty thin
wrapper around the Heliotrope protocol, so mimicking it will feel a lot
like writing a Heliotrope compatibility layer.

I'm not personally interested in doing this, since Heliotrope is the One
True Mailstore as far as I'm concerned, but I'll try to be helpful if
you attempt it.
-- 
William <wmorgan-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-21 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-19 20:44 [sup-devel] Turn Turnsole into a generic mail client Vivien Didelot
2011-06-19 22:01 ` William Morgan
2011-06-21 17:16   ` Vivien Didelot
2011-06-21 20:33     ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox