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
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.