Re: Colostomy bags for Aardvarks .. was Re: Helpful subject lines

2003-02-12 Thread Simon Wistow
On Wed, Feb 12, 2003 at 04:06:26PM +, robin szemeti said:
 most MUA's use the 'References:' or the 'In-reply-to:' line in the header to 
 do the threading ... off hand I can't think of any that use the subject line 

/me coughs and points at 

http://www.jwz.org/doc/threading.html

which lists headers you should look at. I believe Mutt's threading
algorithm is based on this technique but I could be horribly wrong.

His 5th step is If any two members of the root set have the same
subject, merge them. This is so that messages which don't have
References headers at all still get threaded (to the extent possible, at
least.)

Read the rest of that step for exactly how to thread based on 'Subject:'



-- 
the test for truth is still quicker than the addition





Re: Colostomy bags for Aardvarks .. was Re: Helpful subject lines

2003-02-12 Thread Mark Fowler
On Wed, 12 Feb 2003, Simon Wistow wrote:

 His 5th step is If any two members of the root set have the same
 subject, merge them. This is so that messages which don't have
 References headers at all still get threaded (to the extent possible, at
 least.)

I actually got bit by this last month, as Mr Cantrell had started more
than one thread with the subject books and pine's very immature
threading couldn't cope.

Mark.

-- 
#!/usr/bin/perl -T
use strict;
use warnings;
print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};




Re: Colostomy bags for Aardvarks .. was Re: Helpful subject lines

2003-02-12 Thread Simon Wistow
On Wed, Feb 12, 2003 at 04:23:24PM +, Mark Fowler said:
 I actually got bit by this last month, as Mr Cantrell had started more
 than one thread with the subject books and pine's very immature
 threading couldn't cope.

Perhaps one could modify the algorithm so that if the mails were, say,
more than a day apart. Or both without 'Re:' then it wouldn't group
them.

Simon Cozens has written a pure Perl implementation of JWZ's threading
algorithm but I can't test it cos it relies on a later version of
Mail::Mbox which in turn requires Perl 5.6.1 which I don't have.


I suppose I could upgrade the Perl on my colo to 5.6.1 but I'm not sure
if I could be arsed.

Simon

-- 
the test for truth is still quicker than the addition





Re: Colostomy bags for Aardvarks .. was Re: Helpful subject lines

2003-02-12 Thread Nicholas Clark
On Wed, Feb 12, 2003 at 04:28:50PM +, Simon Wistow wrote:
 I suppose I could upgrade the Perl on my colo to 5.6.1 but I'm not sure
 if I could be arsed.

All other things being equal, I'd suggest upgrading it to 5.8.0,
given that 5.8.x is actively being maintained, and 5.8.0 isn't slow
if you don't have a UTF8 locale.

Nicholas Clark