Simon Wistow

NAME

Email::Store::Thread - Store threading information for a mail

ABSTRACT

Remember to create the database table:

    % make install
    % perl -MEmail::Store="..." -e 'Email::Store->setup'

And now:

    my $container = $mail->container;
    if ($container->parent) {
        print "Parent of this message is ".$container->parent->message;
        print "Root of this method is ".$container->root->message;
    }

DESCRIPTION

This adds to a mail the concept of a thread container. A thread container is a node in a tree which represents the thread of an email conversation. It plugs into the indexing process and works out where in the tree the mail belongs; you can then ask a mail for its container, a container for its message, and for its parent, child and sibling containers, which are used to navigate the thread tree. There's also a root container which represents the top message in the tree.

This is distributed separately from the main Email::Store distribution as it tends to slow down indexing somewhat.

SEE ALSO

Email::Store, Mail::Thread

AUTHOR

AUTHOR

The original author is Simon Cozens, <simon@cpan.org> Currently maintained by Simon Wistow <simon@thegestalt.org>

SUPPORT

This module is part of the Perl Email Project - http://pep.kwiki.org/

There is a mailing list at pep@perl.org (subscribe at pep-subscribe@perl.org) and an archive available at http://nntp.perl.org/group/pep.php

COPYRIGHT AND LICENSE

Copyright 2004 by Simon Cozens

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.