NAME

Mail::Message::Convert::HtmlFormatText - Convert HTML into Text

CLASS INHERITANCE

Mail::Message::Convert::HtmlFormatText is a Mail::Message::Convert is a Mail::Reporter

SYNOPSIS

use Mail::Message::Convert::HtmlFormatText;
my $af = Mail::Message::Convert::HtmlFormatText->new;

my $plain_body = $af->format($body);

DESCRIPTION

Convert HTML/XHTML message body objects into plain text bodies using HTML::FormatText.

METHODS

Initiation

new OPTIONS
OPTION               DEFAULT
fields               <see description>
leftmargin           3
log                  'WARNINGS'
rightmargin          72
trace                'WARNINGS'
fields => NAMES|ARRAY-OF-NAMES|REGEXS

See Mail::Message::Convert::new(fields)

leftmargin => INTEGER

The column of the left margin, passed to the formatter.

log => LEVEL

See Mail::Reporter::new(log)

rightmargin => INTEGER

The column of the right margin, passed to the formatter.

trace => LEVEL

See Mail::Reporter::new(trace)

Converting

format BODY

Pass an html/xhtml encoded body, and a plain text body is returned. Characters are translated into Latin1.

selectedFields HEAD

See Mail::Message::Convert::selectedFields()

Logging and Tracing

defaultTrace [LEVEL, [LEVEL]

See Mail::Reporter::defaultTrace()

errors

See Mail::Reporter::errors()

log [LEVEL [,STRINGS]]

See Mail::Reporter::log()

report [LEVEL]

See Mail::Reporter::report()

reportAll [LEVEL]

See Mail::Reporter::reportAll()

trace [LEVEL]

See Mail::Reporter::trace()

warnings

See Mail::Reporter::warnings()

Other Methods

AUTOLOAD

See Mail::Reporter::AUTOLOAD()

DESTROY

See Mail::Reporter::DESTROY()

inGlobalDestruction

See Mail::Reporter::inGlobalDestruction()

logPriority LEVEL

See Mail::Reporter::logPriority()

logSettings

See Mail::Reporter::logSettings()

notImplemented

See Mail::Reporter::notImplemented()

SEE ALSO

A good start to read is Mail::Box-Overview. More documentation and a mailinglist are available from the project's website at http://perl.overmeer.net/mailbox/.

AUTHOR

Mark Overmeer (mark@overmeer.net) with the help of many.

VERSION

This code is beta, version 2.025.

Copyright (c) 2001-2002 Mark Overmeer. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.