METHODS

See METHODS in Mail::Reporter

$obj->addressField( FIELD, HOW, ARGS )

Produce text for a header field containing addresses. HOW this is done is defining the result. Possible values are 'ADDRESS', 'PHRASE', 'PLAIN', 'MAILTO', or 'LINK'. See address HOW for details.

$obj->fromHead( HEAD, NAME, ARGS )

Returns the fields from the header with NAME. Some fields appear more than once, some may not be present.

$obj->htmlAddresses( FIELD, ARGS )

Returns an array with address info.

$obj->htmlBody( ARGS )

Produce the body of the field: everything after the first colon on the header line.

Option Default

address

'MAILTO'

content

<depends>

wrap

78

address => ADDRESS|PHRASE|PLAIN|MAILTO|LINK
See address HOW
content => FOLDED|REFOLD|UNFOLDED|DECODED
How to included the body of the field. If a wrap is defined, then REFOLD is taken as default, otherwise DECODED is the default. See content HOW
wrap => INTEGER
In combination with content REFOLD, it specifies the maximum number of characters requested per line. See wrap INTEGER.
$obj->htmlName( ARGS )

Returns the name of the header field.

Option Default

capitals

'UNCHANGED'

capitals => 'UNCHANGED'|'WELLFORMED'
Overrules the default from new(settings) names. See names HOW.
$obj->lookup( LABEL, ARGS )
See lookup in HTML::FromMail::Page.

Constructors

$class->new( OPTIONS )
Option Defined in Default

log

Mail::Reporter

'WARNINGS'

settings

HTML::FromMail::Object

{}

topic

HTML::FromMail::Object

'field'

trace

Mail::Reporter

'WARNINGS'

log => LEVEL
settings => HASH-OF-HASHES
topic => STRING
trace => LEVEL

Error handling

$obj->AUTOLOAD
See AUTOLOAD in Mail::Reporter.
$obj->addReport( $object )
See addReport in Mail::Reporter.
$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
$class->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
See defaultTrace in Mail::Reporter.
$obj->errors
See errors in Mail::Reporter.
$obj->log( [$level, [$strings]] )
$class->log( [$level, [$strings]] )
See log in Mail::Reporter.
$obj->logPriority( $level )
$class->logPriority( $level )
See logPriority in Mail::Reporter.
$obj->logSettings
See logSettings in Mail::Reporter.
$obj->notImplemented
See notImplemented in Mail::Reporter.
$obj->report( [$level] )
See report in Mail::Reporter.
$obj->reportAll( [$level] )
See reportAll in Mail::Reporter.
$obj->trace( [$level] )
See trace in Mail::Reporter.
$obj->warnings
See warnings in Mail::Reporter.

Cleanup

$obj->DESTROY
See DESTROY in Mail::Reporter.

Attributes

$obj->settings( [TOPIC] )
See settings in HTML::FromMail::Object.
$obj->topic
See topic in HTML::FromMail::Object.

Export

Other methods

$obj->plain2html( STRING )
See plain2html in HTML::FromMail::Object.