Struct imap_proto::types::Envelope [−][src]
pub struct Envelope<'a> {
pub date: Option<Cow<'a, [u8]>>,
pub subject: Option<Cow<'a, [u8]>>,
pub from: Option<Vec<Address<'a>>>,
pub sender: Option<Vec<Address<'a>>>,
pub reply_to: Option<Vec<Address<'a>>>,
pub to: Option<Vec<Address<'a>>>,
pub cc: Option<Vec<Address<'a>>>,
pub bcc: Option<Vec<Address<'a>>>,
pub in_reply_to: Option<Cow<'a, [u8]>>,
pub message_id: Option<Cow<'a, [u8]>>,
}Expand description
An RFC 2822 envelope
See https://datatracker.ietf.org/doc/html/rfc2822#section-3.6 for more details.
Fields
date: Option<Cow<'a, [u8]>>subject: Option<Cow<'a, [u8]>>from: Option<Vec<Address<'a>>>Author of the message; mailbox responsible for writing the message
sender: Option<Vec<Address<'a>>>Mailbox of the agent responsible for the message’s transmission
reply_to: Option<Vec<Address<'a>>>Mailbox that the author of the message suggests replies be sent to
to: Option<Vec<Address<'a>>>cc: Option<Vec<Address<'a>>>bcc: Option<Vec<Address<'a>>>in_reply_to: Option<Cow<'a, [u8]>>message_id: Option<Cow<'a, [u8]>>