NAME

RDF::Base::Email::Part

DESCRIPTION

new

interpart

new_by_path

top

folder

struct

exist

Is the content of this part availible?

email

Returns the RB email node

envelope

first_part_with_type

first_subpart_with_type

first_non_multi_part

parts

  my @parts = $part->parts();

Returns: A list of parts, not counting itself

path

parent

charset

encoding

cid

type

content_type

Alias for /effective_type

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

guess_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

disp

Returns the content-disposition of the part. One of 'inline' or 'attachment', usually.

See IMAP::BodyStructure/disp

description

size

  $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.

size_human

body_head_complete

  $part->body_head_complete()

This will return the headers of the rfc822 part.

Returns: a RDF::Base::Email::Head object

body_head

  $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

head_complete

  $part->head_complete()

This will return the head of the current part.

Returns: a RDF::Base::Email::Head object

header_obj

Alias for /head_complete

head

  $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

header

  $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

body_header

  $part->body_header( $name )

Returns in scalar context: The first header of $name

Retuns in list context: A list of all $name headers

charset_guess

  $part->charset_guess

  $part->charset_guess(\%args)

Args:

  sample => \$data

url_path

  $part->url_path( $name, $type )

filename_safe

filename

generate_name

  $part->generate_name

Generates a non-unique message name for use for attachemnts, et al

select_renderer

body_with_sensible_charset

  returns( $bodyref, $charset )

body_with_original_charset

body

Always returns string in perl character encoding

Returns scalar ref

body_raw

body_part

guess_content_part

body_as_text

returns in list context: ($bodyr, $ct_source)

returns in scalar context: $bodyr

body_extract

Returns a string

viewtree

tick

desig

sysdesig

is_top

match

Expecting the normal case of html email and/or plain text email

attachments

attachments_as_html

footer_remove

  $body = footer_remove($str)

Also used from E::Classifier

classified