-
-
11 Dec 2003 15:52:40 UTC
- Distribution: GraphViz-Mail
- Module version: 0.1
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (123 / 0 / 0)
- Kwalitee
Bus factor: 0- 83.33% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (2.63KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Accessor::Chained
- Date::Parse
- GraphViz
- Mail::Thread
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
GraphViz::Mail - visualise a Mail thread as a tree
SYNOPSIS
my $threader = Mail::Thread->new( @messages ); $threader->thread; my $i; for my $thread ($threader->rootset) { ++$i; my $gm = GraphViz::Mail->new($thread); write_file( "thread_$i.svg", $gm->as_png ); }
DESCRIPTION
GraphViz::Mail takes a Mail::Thread::Container and generates a graph of the thread.
METHODS
new
Generic constructor, takes a Mail::Thread::Container
as_*
The Thread can be visualised in a number of different graphical formats. Methods include as_ps, as_hpgl, as_pcl, as_mif, as_pic, as_gd, as_gd2, as_gif, as_jpeg, as_png, as_wbmp, as_ismap, as_imap, as_vrml, as_vtx, as_mp, as_fig, as_svg. See the GraphViz documentation for more information. The two most common methods are:
# Print out a PNG-format file print $g->as_png; # Print out a PostScript-format file print $g->as_ps;
draw_message( $message )
Draw the message on the Graph.
draw_arc( $from, $to )
draws an arc between two messages
date_of( $container )
The date the message was sent, in epoch seconds
BUGS
None known.
AUTHOR
Simon Wistow <simon@thegestalt.org>
COPYRIGHT
Copyright (C) 2003, Simon Wistow
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
Module Install Instructions
To install GraphViz::Mail, copy and paste the appropriate command in to your terminal.
cpanm GraphViz::Mail
perl -MCPAN -e shell install GraphViz::Mail
For more information on module installation, please visit the detailed CPAN module installation guide.