NAME
Mail::Box::IMAP4::Body - body for remote IMAP messages
INHERITANCE
Mail::Box::IMAP4::Body
is a Mail::Message::Body::Lines
is a Mail::Message::Body
is a Mail::Reporter
SYNOPSIS
DESCRIPTION
OVERLOADED
overload: ""
overload: '==' and '!='
overload: @{}
overload: bool
METHODS
Constructors
$obj->clone
Mail::Box::IMAP4::Body->new(OPTIONS)
Option Defined in Default
based_on L<Mail::Message::Body> undef
cache_body <false>
charset L<Mail::Message::Body> C<'us-ascii'>
checked L<Mail::Message::Body> <false>
data L<Mail::Message::Body> undef
disposition L<Mail::Message::Body> undef
eol L<Mail::Message::Body> C<'NATIVE'>
file L<Mail::Message::Body> undef
log L<Mail::Reporter> C<'WARNINGS'>
message L<Mail::Message::Body> undef
mime_type L<Mail::Message::Body> C<'text/plain'>
modified L<Mail::Message::Body> <false>
trace L<Mail::Reporter> C<'WARNINGS'>
transfer_encoding L<Mail::Message::Body> C<'none'>
write_body <true>
. based_on BODY
. cache_body BOOLEAN
Keep a local copy if the body.
. charset STRING
. checked BOOLEAN
. data ARRAY-OF-LINES | STRING
. 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
. write_body BOOLEAN
Write the body information immediately to the remote server.
Constructing a body
$obj->attach(MESSAGES, OPTIONS)
$obj->check
$obj->concatenate(COMPONENTS)
$obj->decoded(OPTIONS)
$obj->encode(OPTIONS)
$obj->encoded
$obj->eol(['CR'|'LF'|'CRLF'|'NATIVE'])
$obj->foreachLine(CODE)
$obj->stripSignature(OPTIONS)
$obj->unify(BODY)
The body
$obj->guessSize
$obj->isDelayed
$obj->isMultipart
$obj->isNested
$obj->message([MESSAGE])
About the payload
$obj->charset
$obj->checked([BOOLEAN])
$obj->disposition([STRING|FIELD])
$obj->dispositionFilename(DIRECTORY)
$obj->isBinary
$obj->isText
$obj->mimeType
$obj->nrLines
$obj->size
$obj->transferEncoding([STRING|FIELD])
$obj->type([STRING|FIELD])
Access to the payload
$obj->file
$obj->lines
$obj->print([FILEHANDLE])
$obj->printEscapedFrom(FILEHANDLE)
$obj->string
$obj->write(OPTIONS)
Internals
$obj->addTransferEncHandler(NAME, CLASS|OBJECT)
Mail::Box::IMAP4::Body->addTransferEncHandler(NAME, CLASS|OBJECT)
$obj->contentInfoFrom(HEAD)
$obj->contentInfoTo(HEAD)
$obj->fileLocation([BEGIN,END])
$obj->getTransferEncHandler(TYPE)
$obj->isModified
$obj->load
Returns the loaded version of this body.
$obj->modified([BOOLEAN])
$obj->moveLocation([DISTANCE])
$obj->read(PARSER, HEAD, BODYTYPE)
Error handling
$obj->AUTOLOAD
$obj->addReport(OBJECT)
$obj->defaultTrace([LEVEL, [LEVEL])
Mail::Box::IMAP4::Body->defaultTrace([LEVEL, [LEVEL])
$obj->errors
$obj->log([LEVEL [,STRINGS]])
Mail::Box::IMAP4::Body->log([LEVEL [,STRINGS]])
$obj->logPriority(LEVEL)
Mail::Box::IMAP4::Body->logPriority(LEVEL)
$obj->logSettings
$obj->notImplemented
$obj->report([LEVEL])
$obj->reportAll([LEVEL])
$obj->trace([LEVEL])
$obj->warnings
Cleanup
$obj->DESTROY
$obj->inGlobalDestruction
DIAGNOSTICS
Warning: No decoder defined for transfer encoding $name.
The data (message body) is encoded in a way which is not currently understood, therefore no decoding (or recoding) can take place.
Warning: No encoder defined for transfer encoding $name.
The data (message body) has been decoded, but the required encoding is unknown. The decoded data is returned.
Error: Package $package does not implement $method.
Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package.
DETAILS
REFERENCES
See the MailBox website at http://perl.overmeer.net/mailbox/ for more details.
COPYRIGHTS
Distribution version 2.052. Written by Mark Overmeer (mark@overmeer.net). See the ChangeLog for other contributors.
Copyright (c) 2001-2003 by the author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.