pub struct Envelope {Show 13 fields
pub file: MailFile,
pub from: String,
pub from_full: String,
pub subject: String,
pub date: i64,
pub msg_id: Option<String>,
pub references: Vec<String>,
pub tagged: bool,
pub to: Vec<String>,
pub cc: Vec<String>,
pub lines: Option<usize>,
pub list: Option<String>,
pub label: Option<String>,
}Expand description
Summary of one message for the index view.
Fields§
§file: MailFile§from: StringShort display form of the sender (name when there is one).
from_full: StringThe whole decoded From header, so ~f can match the address
too, like mutt (empty in entries from a pre-1.24 header cache).
subject: String§date: i64Unix epoch seconds from the Date header, 0 if missing/unparsable.
msg_id: Option<String>Normalized <...> Message-ID, if present.
references: Vec<String>References chain (oldest first), In-Reply-To appended if novel.
tagged: boolRuntime tag mark (mutt’s t); never persisted.
to: Vec<String>Bare lowercase To / Cc addresses, for the “addressed to me” index mark.
cc: Vec<String>§lines: Option<usize>Body line count for %l; None for header-only IMAP cache
files, whose %?l?…&…? else branch shows until the body is
fetched.
list: Option<String>Mailing-list name from List-Id, for %L (“To
label: Option<String>mutt’s X-Label header, for %y, ~y, and sort by label.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more