Man pages sections > man3 > CiderWebmail::Message

CiderWebmail::Message

CiderWebmail::Message(3pm) User Contributed Perl Documentation CiderWebmail::Message(3pm)

get_part_by_part_id({ part_id => '1.2.3' })

takes the part_id of a message part and returns the CiderWebmail::Part object of a bodypart of this message

get_part_by_body_id({ body_id => $body_id })

takes the body_id (cid) of a message part and returns the CiderWebmail::Part object of a bodypart of this message

get_header($header)

Returns the first value found for the named header

flags()

returns hashref of IMAP flags for this message

subject()

Shortcut getting the subject or 'No Subject' if none is available.

from()

Shortcut for getting the 'from' header

to()

Shortcut for getting the 'to' header

reply_to()

Shortcut for getting the 'reply-to' header

list_post()

Shortcut for getting the 'list-post' header

cc()

Shortcut for getting the 'CC' header

message_id()

Shortcut for getting the 'Message-ID' header

references()

Shortcut for getting the 'References' header

mark_read()

Mark the message as read

mark_answered()

Mark the message as answered

date()

Returns the 'date' header as datetime object

delete()

Deletes the message from the server.

toggle_important()

Toggles the important/flagged IMAP flag of the message.

move({target_folder => 'Folder 1'})

Moves the message on the server to the named folder.

as_string

Returns the full message source text.
2017-09-21 perl v5.26.0