Struct mail_parser::Message[][src]

pub struct Message<'x> { /* fields omitted */ }
Expand description

An RFC5322/RFC822 message.

Implementations

Returns false if at least one header field was successfully parsed.

Parses a byte slice containing the RFC5322 raw message and returns a Message struct.

This function never panics, a best-effort is made to parse the message and if no headers are found and empty Message struct is returned. To make sure parsing was successfull use is_empty().

Returns the BCC header field

Returns the CC header field

Returns all Comments header fields

Returns the Date header field

Returns the From header field

Returns all In-Reply-To header fields

Returns all Keywords header fields

Returns the List-Archive header field

Returns the List-Help header field

Returns the List-ID header field

Returns the List-Owner header field

pub fn get_list_post(&self) -> &Address<'x>

Returns the List-Port header field

Returns the List-Subscribe header field

Returns the List-Unsubscribe header field

Returns the Message-ID header field

Returns the MIME-Version header field

Returns all Received header fields

Returns all References header fields

Returns the Reply-To header field

Returns the Resent-BCC header field

Returns the Resent-CC header field

Returns all Resent-Date header fields

Returns the Resent-From header field

Returns all Resent-Message-ID header fields

Returns the Sender header field

Returns the Resent-To header field

Returns all Return-Path header fields

Returns the Sender header field

Returns the Subject header field

Returns the To header field

Returns any other message header not specified in RFCs 5322, 2045-2049, 2183, 2369 or 2919.

Returns an inline HTML body part by position

Returns an inline text body part by position

Returns an attacment by position

Returns the number of plain text body parts

Returns the number of HTML body parts

Returns the number of attachments

Returns an Interator over the text body parts

Returns an Interator over the HTML body parts

Returns an Interator over the attachments

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Content-Description MIME header

Content-Disposition MIME header

Content-ID MIME header

Content-Transfer-Encoding MIME header

Content-Type MIME header

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.