METHODS

See METHODS in Mail::Reporter

Constructors

$class->new( %options )
See new in Mail::Reporter.

The Encoder

$class->addTransferEncoder( $type, $class )

Adds one new encoder to the list known by the Mail::Box suite. The $type is found in the message's header in the Content-Transfer-Encoding field.

$obj->create( $type, %options )

Create a new coder/decoder based on the required type.

» Error: Decoder for transfer encoding $type does not work: $@

Compiling the required transfer encoding resulted in errors, which means that the decoder can not be used.

» Warning: No decoder for transfer encoding $type.

A decoder for the specified type of transfer encoding is not implemented.

$obj->name

The name of the encoder. Case is not significant.

Encoding

$obj->check( $body, %options )

Check whether the body is correctly encoded. If so, the body reference is returned with the checked flag set. Otherwise, a new object is created and returned.

Option Default

result_type

<type of source body>

result_type => CLASS
The type of the body to be produced, when the checker decides to return modified data.
$obj->decode( $body, %options )

Use the encoder to decode the content of $body. A new body is returned.

Option Default

result_type

<type of source body>

result_type => CLASS
The type of the body to be produced, when the decoder decides to return modified data.
$obj->encode( $body, %options )

Use the encoder to encode the content of $body.

Option Default

result_type

<type of source body>

result_type => CLASS
The type of the body to be produced, when the decoder decides to return modified data.

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.