[Tmail-talk] Message threading with jwz''s algorithm

Mikel Lindsaar
Thu, 17 Jan 2008 05:16:41 -0000

> Partly inspired (and reminded) by a certain blog post I stumbled
> across on lindsaar.net about being a real programmer (*cough*), I feel
> I should make a long overdue contribution to Tmail.

You mean someone read my blog?!?!?!  What the hell is going on around here??? :D

> Several years ago, I wrote some code to take Tmail message objects and
> build threads out of them, based on Jamie Zawinski''s message
> threading[1] algorithm.  I modified it substantially, based on the
> fact that jwz''s doing a lot of pointer-silliness in C to do things
> that are simpler done differently when you have Arrays as part of your
> language.  Yay, Ruby.

Now, that sounds cool.

> This has languished on my hard drive for nearly three years now.  To
> be honest, I''m a little ashamed to admit I''d never
bothered to try to
> submit this code for inclusion into TMail.  It''s not shining code
-
> badly commented, and written shortly after I started learning Ruby, so
> it''s kinda Perlish.  But it worked, once upon a time, and with a
> little love, could be useful to others.

No problem!

> Okay, enough with the caveats.  How''d you like me to send it to
you

Well, you bring up a good point on how to contribute to TMail.

The simple thing is svn down the latest trunk:

svn checkout http://tmail.rubyforge.org/svn/ tmail-trunk

Then get in there and hack!

Patches and feature requests should be submitted via RubyForge''s
tracker.

Though, tell me more about this :)  Where would you see it going in
and what sort of interface are we after?

Obviously it would have to hang off the TMail module directly as it
would reference multiple TMail objects, but what are your thoughts on
this?

Love to get your help!  The more the merrier!

Mikel