OVERLOADED

overload: ""
See "" in Mail::Message::Body.
overload: '==' and '!='
See '==' and '!=' in Mail::Message::Body.
overload: @{}
See @{} in Mail::Message::Body.
overload: bool
See bool in Mail::Message::Body.

METHODS

See METHODS in Mail::Reporter

Constructors

$obj->clone
See clone in Mail::Message::Body.
$class->new( %options )
Option Defined in Default

based_on

Mail::Message::Body

undef

charset

Mail::Message::Body

'PERL' or <undef>

checked

Mail::Message::Body

<false>

content_id

Mail::Message::Body

undef

data

Mail::Message::Body

undef

description

Mail::Message::Body

undef

disposition

Mail::Message::Body

undef

eol

Mail::Message::Body

'NATIVE'

file

Mail::Message::Body

undef

log

Mail::Reporter

'WARNINGS'

message

Mail::Message::Body

undef

mime_type

Mail::Message::Body

'text/plain'

modified

Mail::Message::Body

<false>

trace

Mail::Reporter

'WARNINGS'

transfer_encoding

Mail::Message::Body

'none'

based_on => BODY
charset => CHARSET|'PERL'
checked => BOOLEAN
content_id => STRING
data => ARRAY-OF-LINES | STRING
description => STRING|FIELD
disposition => STRING|FIELD
eol => 'CR'|'LF'|'CRLF'|'NATIVE'
file => FILENAME|FILEHANDLE|IOHANDLE
log => LEVEL
message => MESSAGE
mime_type => STRING|FIELD|MIME
modified => BOOLEAN
trace => LEVEL
transfer_encoding => STRING|FIELD
» Error: Unable to read file $filename for message body scalar: $!

A Mail::Message::Body::String object is to be created from a named file, but it is impossible to read that file to retrieve the lines within.

Constructing a body

$obj->attach( $messages, %options )
See attach in Mail::Message::Body::Construct.
$obj->check
See check in Mail::Message::Body::Encode.
$obj->concatenate( $components )
See concatenate in Mail::Message::Body::Construct.
$obj->decoded( %options )
See decoded in Mail::Message::Body.
$obj->encode( %options )
See encode in Mail::Message::Body::Encode.
$obj->encoded
See encoded in Mail::Message::Body::Encode.
$obj->eol( ['CR'|'LF'|'CRLF'|'NATIVE'] )
See eol in Mail::Message::Body.
$obj->foreachLine( CODE )
See foreachLine in Mail::Message::Body::Construct.
$obj->stripSignature( %options )
See stripSignature in Mail::Message::Body::Construct.
$obj->unify( $body )
See unify in Mail::Message::Body::Encode.

The body

$obj->isDelayed
See isDelayed in Mail::Message::Body.
$obj->isMultipart
See isMultipart in Mail::Message::Body.
$obj->isNested
See isNested in Mail::Message::Body.
$obj->message( [$message] )
See message in Mail::Message::Body.
$obj->partNumberOf( $part )
See partNumberOf in Mail::Message::Body.

About the payload

$obj->charset
See charset in Mail::Message::Body.
$obj->checked( [BOOLEAN] )
See checked in Mail::Message::Body.
$obj->contentId( [STRING|$field] )
See contentId in Mail::Message::Body.
$obj->description( [STRING|$field] )
See description in Mail::Message::Body.
$obj->disposition( [STRING|$field] )
See disposition in Mail::Message::Body.
$obj->dispositionFilename( [$directory] )
See dispositionFilename in Mail::Message::Body::Encode.
$obj->isBinary
See isBinary in Mail::Message::Body::Encode.
$obj->isText
See isText in Mail::Message::Body::Encode.
$obj->mimeType
See mimeType in Mail::Message::Body.
$obj->nrLines
See nrLines in Mail::Message::Body.
$obj->size
See size in Mail::Message::Body.
$obj->transferEncoding( [STRING|$field] )
See transferEncoding in Mail::Message::Body.
$obj->type( [STRING|$field] )
See type in Mail::Message::Body.

Access to the payload

$obj->endsOnNewline
See endsOnNewline in Mail::Message::Body.
$obj->file
See file in Mail::Message::Body.
$obj->lines
See lines in Mail::Message::Body.
$obj->print( [$fh] )
See print in Mail::Message::Body.
$obj->printEscapedFrom( $fh )
See printEscapedFrom in Mail::Message::Body.
$obj->string
See string in Mail::Message::Body.
$obj->stripTrailingNewline
See stripTrailingNewline in Mail::Message::Body.
$obj->write( %options )
See write in Mail::Message::Body.

Internals

$obj->addTransferEncHandler( $name, <$class|$object> )
$class->addTransferEncHandler( $name, <$class|$object> )
See addTransferEncHandler in Mail::Message::Body::Encode.
$obj->contentInfoFrom( $head )
See contentInfoFrom in Mail::Message::Body.
$obj->contentInfoTo( $head )
See contentInfoTo in Mail::Message::Body.
$obj->fileLocation( [$begin, $end] )
See fileLocation in Mail::Message::Body.
$obj->getTransferEncHandler( $type )
See getTransferEncHandler in Mail::Message::Body::Encode.
$obj->isModified
See isModified in Mail::Message::Body.
$obj->load
See load in Mail::Message::Body.
$obj->modified( [BOOLEAN] )
See modified in Mail::Message::Body.
$obj->moveLocation( [$distance] )
See moveLocation in Mail::Message::Body.
$obj->read( $parser, $head, $bodytype, [$chars, [$lines]] )
See read in Mail::Message::Body.

Error handling

$obj->AUTOLOAD
See AUTOLOAD in Mail::Message::Body.
$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.