Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

email::thread(3pm) [debian man page]

Email::Thread(3pm)					User Contributed Perl Documentation					Email::Thread(3pm)

NAME
Email::Thread - Use JWZ's mail threading algorithm with Email::Simple objects SYNOPSIS
use Email::Thread; my $threader = Email::Thread->new(@messages); $threader->thread; dump_em($_,0) for $threader->rootset; sub dump_em { my ($self, $level) = @_; debug (' \-> ' x $level); if ($self->message) { print $self->message->header("Subject") , " "; } else { print "[ Message $self not available ] "; } dump_em($self->child, $level+1) if $self->child; dump_em($self->next, $level) if $self->next; } DESCRIPTION
Strictly speaking, this doesn't really need Email::Simple objects. It just needs an object that responds to the same API. At the time of writing the list of classes with the Email::Simple API comprises just Email::Simple. Due to how it's implemented, its API is an exact clone of Mail::Thread. Please see that module's documentation for API details. Just mentally substitute "Email::Thread" everywhere you see "Mail::Thread" and "Email::Thread::Container" where you see "Mail::Thread::Container". PERL EMAIL PROJECT
This module is maintained by the Perl Email Project. <http://emailproject.perl.org/wiki/Email::Thread> SUPPORT
Support for this module is provided via the CPAN RT system at <http://rt.cpan.org/> LICENCE AND COPYRIGHT
Copyright X Iain Truskett, 2003. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. THANKS
Simon Cozens (SIMON) for encouraging me to release it, and for Email::Simple and Mail::Thread. Richard Clamp (RCLAMP) for the header patch. AUTHORS
Iain Truskett <spoon@cpan.org> SEE ALSO
perl, Mail::Thread, Email::Simple perl v5.10.0 2007-03-22 Email::Thread(3pm)

Check Out this Related Man Page

Email::Simple::Header(3pm)				User Contributed Perl Documentation				Email::Simple::Header(3pm)

NAME
Email::Simple::Header - the header of an Email::Simple message SYNOPSIS
my $email = Email::Simple->new($text); my $header = $email->head; print $header->as_string; DESCRIPTION
This method implements the headers of an Email::Simple object. It is a very minimal interface, and is mostly for private consumption at the moment. METHODS
new my $header = Email::Simple::Header->new($head, \%arg); $head is a string containing a valid email header, or a reference to such a string. If a reference is passed in, don't expect that it won't be altered. Valid arguments are: crlf - the header's newline; defaults to CRLF as_string my $string = $header->as_string(\%arg); This returns a stringified version of the header. header_names This method returns the unique header names found in this header, in no particular order. header_pairs This method returns all the field/value pairs in the header, in the order that they appear in the header. header my $first_value = $header->header($field); my @all_values = $header->header($field); This method returns the value or values of the given header field. If the named field does not appear in the header, this method returns false. header_set $header->header_set($field => @values); This method updates the value of the given header. Existing headers have their values set in place. Additional headers are added at the end. If no values are given to set, the header will be removed from to the message entirely. crlf This method returns the newline string used in the header. PERL EMAIL PROJECT
This module is maintained by the Perl Email Project <http://emailproject.perl.org/> COPYRIGHT AND LICENSE
Copyright 2006-2007 by Ricardo SIGNES Copyright 2004 by Casey West Copyright 2003 by Simon Cozens This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-12-23 Email::Simple::Header(3pm)
Man Page