Email::Store::Thread - Store threading information for a mail
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; }
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.
container
message
parent
child
sibling
root
This is distributed separately from the main Email::Store distribution as it tends to slow down indexing somewhat.
Email::Store
Email::Store, Mail::Thread
The original author is Simon Cozens, <simon@cpan.org> Currently maintained by Simon Wistow <simon@thegestalt.org>
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 2004 by Simon Cozens
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Email::Store::Thread, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Store::Thread
CPAN shell
perl -MCPAN -e shell install Email::Store::Thread
For more information on module installation, please visit the detailed CPAN module installation guide.