[][src]Trait libimagmail::mail::Mail

pub trait Mail: RefFassade {
    fn is_mail(&self) -> Result<bool>;
fn get_field(
        &self,
        refconfig: &RefConfig,
        field: &str
    ) -> Result<Option<String>>;
fn get_from(&self, refconfig: &RefConfig) -> Result<Option<String>>;
fn get_to(&self, refconfig: &RefConfig) -> Result<Option<String>>;
fn get_subject(&self, refconfig: &RefConfig) -> Result<Option<String>>;
fn get_message_id(&self, refconfig: &RefConfig) -> Result<Option<String>>;
fn get_in_reply_to(&self, refconfig: &RefConfig) -> Result<Option<String>>; }

Required methods

fn is_mail(&self) -> Result<bool>

fn get_field(
    &self,
    refconfig: &RefConfig,
    field: &str
) -> Result<Option<String>>

fn get_from(&self, refconfig: &RefConfig) -> Result<Option<String>>

fn get_to(&self, refconfig: &RefConfig) -> Result<Option<String>>

fn get_subject(&self, refconfig: &RefConfig) -> Result<Option<String>>

fn get_message_id(&self, refconfig: &RefConfig) -> Result<Option<String>>

fn get_in_reply_to(&self, refconfig: &RefConfig) -> Result<Option<String>>

Loading content...

Implementations on Foreign Types

impl Mail for Entry[src]

fn get_field(
    &self,
    refconfig: &RefConfig,
    field: &str
) -> Result<Option<String>>
[src]

Get a value of a single field of the mail file

fn get_from(&self, refconfig: &RefConfig) -> Result<Option<String>>[src]

Get a value of the From field of the mail file

Note

Use Mail::mail_header() if you need to read more than one field.

fn get_to(&self, refconfig: &RefConfig) -> Result<Option<String>>[src]

Get a value of the To field of the mail file

Note

Use Mail::mail_header() if you need to read more than one field.

fn get_subject(&self, refconfig: &RefConfig) -> Result<Option<String>>[src]

Get a value of the Subject field of the mail file

Note

Use Mail::mail_header() if you need to read more than one field.

fn get_message_id(&self, refconfig: &RefConfig) -> Result<Option<String>>[src]

Get a value of the Message-ID field of the mail file

Note

Use Mail::mail_header() if you need to read more than one field.

fn get_in_reply_to(&self, refconfig: &RefConfig) -> Result<Option<String>>[src]

Get a value of the In-Reply-To field of the mail file

Note

Use Mail::mail_header() if you need to read more than one field.

Loading content...

Implementors

Loading content...