I don't have anything too useful to contribute, I just wanted to say that it would be great if you could make a new activity. I looked into making one based on Tinymail as my initial get-to-know-sugar exercise, but I have ended up working on Develop. I only saw enough to see that tinymail is really a large set of useful components, you have to glue everything together yourself. Therefore, if you are creating an innovative interface, and if you're up to it, it may be just as effective to shop around for the components you really need (such as Dovecot) and then do more in your own application, rather than learning all the bits of tinymail. Reduce the surface area of contact between your code and foreign code, as it were.<br>
<br>This is great that somebody is doing this.<br><br><div class="gmail_quote">On Thu, Feb 21, 2008 at 7:55 PM, Asheesh Laroia <<a href="mailto:asheesh@creativecommons.org">asheesh@creativecommons.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Thu, 21 Feb 2008, Shikhar wrote:<br>
<br>
> Hi,<br>
><br>
> I would like to get the general feeling about the XO and email. There is<br>
> a Gmail activity but no possibility of composing and viewing emails<br>
> offline, which I think is important.<br>
<br>
</div>I think that might be nice also!<br>
<div class="Ih2E3d"><br>
> - With Python, an email activity can be accomplished with the<br>
> RFC-compliant email modules (for POP, SMTP, IMAP, MIME) and using sqlite<br>
> for storage. So while building upon Tinymail<br>
> (<a href="http://wiki.laptop.org/go/Tinymail" target="_blank">http://wiki.laptop.org/go/Tinymail</a>) is an idea, it makes sense to just<br>
> go with Python email modules and sqlite if the next point is to be<br>
> implemented :-)<br>
<br>
</div>You suggest using sqlite for storage, and further, as I understand it,<br>
writing your own mail storage layer. But on the other hand, you could use<br>
an existing top-notch Free Software mail store, like Dovecot. Dovecot<br>
comes with full-text indexing for search of email, for example, and header<br>
caching to optimize common queries ("Tell me all the From, Subject, To,<br>
and Date headers").<br>
<br>
That's my main contribution to this thread - I fear you won't re-use some<br>
already great software. The rest of your suggestions could perhaps be<br>
implemented as Dovecot plugins to minimize wasted work; for the most part,<br>
I agree with them. (-:<br>
<br>
Once you start thinking of this in terms of interoperability with existing<br>
mail systems, I think you'll find you have way less work to do. For<br>
example:<br>
<div class="Ih2E3d"><br>
> - Email threading: there is some Python code at<br>
> <a href="http://www.amk.ca/python/code/jwz" target="_blank">http://www.amk.ca/python/code/jwz</a>, which could be adapted<br>
<br>
</div>Built-into IMAP, which Dovecot implements.<br>
<div class="Ih2E3d"><br>
> - Search using sql queries<br>
><br>
> I have a good mental picture of what I want to do - maybe I am not<br>
> communicating it too well, but I am willing to elaborate. I would really<br>
> like your feedback especially on the fundamental idea of using Python<br>
> email modules and sqlite in case I am thinking in the wrong direction,<br>
> although this appears to me to be the best approach<br>
<br>
</div>IMAP provides SEARCH TEXT, which Dovecot can now (as of 1.1.rc1) store an<br>
index for, and therefore return answers in split-second times in many<br>
cases.<br>
<br>
-- Asheesh.<br>
<font color="#888888"><br>
--<br>
You're already carrying the sphere!<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</div></div></blockquote></div><br>