This script is a Python implementation of Jamie Zawinski’s threading algorithm, which takes a bunch of email messages and groups them into threads.
The module gorithm, which takes a bunch of email messages and groups them into threads.
The module contains a thread() function that takes a list of Message objects.
Message is a class defined in this module and not the rfc822.Message class; there’s a make_message() function that will take an rfc822.Message object, look at its ‘References:’ and ‘In-Reply-To:’ headers,and return a jwzthreading.Message object. thread() will return a dictionary mapping subject lines to Container objects that are the root of trees containing the threaded messages.
Download from: Homepage
Author:
Time:
Friday, May 30th, 2008 at 2:54 am
Category:
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation: