Skip to main content

Index

Struct Index 

Source
pub struct Index {
    pub format: Option<String>,
    pub sort: Option<String>,
    pub sort_aux: Option<String>,
    pub date_format: Option<String>,
    pub collapse_unread: Option<bool>,
    pub uncollapse_jump: bool,
    pub hide_thread_subject: Option<bool>,
    pub uncollapse_new: Option<bool>,
    pub strict_threads: Option<bool>,
    pub sort_re: Option<bool>,
}

Fields§

§format: Option<String>§sort: Option<String>

Initial sort: date/from/subject/size/threads, “reverse-” prefix allowed (the o menu can still change it at runtime).

§sort_aux: Option<String>

“last-date-sent” orders threads by their newest message instead of the default oldest-first.

§date_format: Option<String>

chrono strftime string for the index date column (mutt’s date_format), e.g. “%d.%m.%Y”; default “%b %e”, like mutt’s index date.

§collapse_unread: Option<bool>

mutt’s $collapse_unread (default true, as in mutt): a thread holding unread mail folds like any other. False leaves those threads open when everything else folds.

§uncollapse_jump: bool

mutt’s $uncollapse_jump: unfolding a thread puts the cursor on its first unread message.

§hide_thread_subject: Option<bool>

mutt’s $hide_thread_subject: a thread reply whose subject matches its parent’s shows a blank subject (just the tree arrow). Off by default here, where mutt has it on, so rmut’s look is unchanged unless asked.

§uncollapse_new: Option<bool>

mutt’s $uncollapse_new: a collapsed thread that receives a new message unfolds. True unless set otherwise, as in mutt.

§strict_threads: Option<bool>

mutt’s $strict_threads: thread by In-Reply-To and References only. False (the default, as in mutt) also groups a root whose subject repeats one already in the mailbox, which is what threads mail that arrives without those headers at all.

§sort_re: Option<bool>

mutt’s $sort_re: the subject grouping only takes a root whose subject carries the $reply_regexp prefix. True by default, as in mutt; false groups any equal subject, unrelated “hi” mail included.

Trait Implementations§

Source§

impl Clone for Index

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Index

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Index

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Index
where Index: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Freeze for Index

§

impl RefUnwindSafe for Index

§

impl Send for Index

§

impl Sync for Index

§

impl Unpin for Index

§

impl UnsafeUnpin for Index

§

impl UnwindSafe for Index

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.