NAME

Rit::Base::Email::Part

DESCRIPTION

new

interpart

new_by_path

top

folder

struct

exist

Is the content of this part availible?

email

envelope

first_part_with_type

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

Returns: A plain scalar string of the mime-type

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 Rit::Base::Email::Head object

body_head

  $part->body_head()

The returned head object may not contain all the headers. See Rit::Base::Email::IMAP::Head

See /body_head_complete.

Returns: a Rit::Base::Email::Head object

head_complete

  $part->head_complete()

This will return the head of the current part.

Returns: a Rit::Base::Email::Head object

header_obj

Alias for /head_complete

head

  $part->head()

The returned head object may not contain all the headers. See Rit::Base::Email::IMAP::Head

See /head_complete.

Returns: a Rit::Base::Email::Head object

header

  $part->header( $name )

Returns in scalar context: The first header of $name

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

body_raw

body_part

guess_content_part

body_as_text

body_extract

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)