RDF::Base::Email::Part
Is the content of this part availible?
Returns the RB email node
my @parts = $part->parts();
Returns: A list of parts, not counting itself
Alias for /effective_type
$part->effective_type $part->effective_type( $type )
Mostly the same as /type.
Any entity with an unrecognized Content-Transfer-Encoding must be treated as if it has a Content-Type of "application/octet-stream", regardless of what the Content-Type header field actually says.
On the other hand; If the type is given as "application/octet-stream" but we recognize the file extension, the type will be given based on the file extension.
Returns: A plain scalar string of the mime-type
See also: MIME::Entity/effective_type
$part->guess_type
Called from /effective_type when the content-type is not recognized. Guesses the content-type from the part body.
Will make special parsing for detecting message/rfc822
Returns: A plain scalar string of the mime-type
Returns the content-disposition of the part. One of 'inline' or 'attachment', usually.
$part->size
Returns the size of the part in octets. It is NOT the size of the data in the part, which may be encoded as quoted-printable leaving us without an obvious method of calculating the exact size of original data.
NOTE: Is this the size of the body of the part??? I'll assume it is.
$part->body_head_complete()
This will return the headers of the rfc822 part.
Returns: a RDF::Base::Email::Head object
$part->body_head()
The returned head object may not contain all the headers. See RDF::Base::Email::IMAP::Head
See /body_head_complete.
Returns: a RDF::Base::Email::Head object
$part->head_complete()
This will return the head of the current part.
Returns: a RDF::Base::Email::Head object
Alias for /head_complete
$part->head()
The returned head object may not contain all the headers. See RDF::Base::Email::IMAP::Head
See /head_complete.
Returns: a RDF::Base::Email::Head object
$part->header( $name )
Returns in scalar context: The first header of $name, or the empty string if not existing.
Retuns in list context: A list of all $name headers
$part->body_header( $name )
Returns in scalar context: The first header of $name
Retuns in list context: A list of all $name headers
$part->charset_guess $part->charset_guess(\%args)
Args:
sample => \$data
$part->url_path( $name, $type )
$part->generate_name
Generates a non-unique message name for use for attachemnts, et al
returns( $bodyref, $charset )
Always returns string in perl character encoding
Returns scalar ref
returns in list context: ($bodyr, $ct_source)
returns in scalar context: $bodyr
Returns a string
Expecting the normal case of html email and/or plain text email
$body = footer_remove($str)
Also used from E::Classifier