Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Message threading

by BazB (Priest)
on Jun 20, 2003 at 16:58 UTC ( [id://267651]=note: print w/replies, xml ) Need Help??


in reply to Message threading

You might find Jamie Zawinski's document on message threading interesting.

It seems Mail::Thread and Email::Thread implement JWZ's algorithm.
There are alternative ways of handling messages, including threading, such as Mail::Box.

Cheers.

BazB


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Replies are listed 'Best First'.
Re: Re: Message threading
by sschneid (Deacon) on Jun 20, 2003 at 17:03 UTC
    Yeah, I've read Jamie's document and it helps to get a basis as far as an algorythm. The problem with modules like Mail::Thread and Email::Thread is that they both use e-mail objects, which is different from the type of data I'm trying to thread (Mail::Thread, at least, only accepts Mail::Internet and Mail::Box::Message objects) -- which I'm not feeding it.

    -s.

      It seems to me the hard part (threading algorithm) is already done for you as long as you make your objects look like the objects it expects. So why not find all the methods actually used by the Mail|Email::Thread module for threading and create wrapper methods in yours -- that is, implement the common interface. This way you get threading for free and the wonderful side-effect of decoupled code.

      Chris
      M-x auto-bs-mode

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://267651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found