pub struct MailConfig {
pub notmuch_config: Option<PathBuf>,
pub notmuch: Option<PathBuf>,
pub identity: Option<String>,
pub deny_file: Option<PathBuf>,
pub attribution: Vec<String>,
}Expand description
What the [mail] layers say. Every key is optional.
Fields§
§notmuch_config: Option<PathBuf>NOTMUCH_CONFIG for every read. The reader refuses without it.
notmuch: Option<PathBuf>The notmuch binary: an absolute path, or a bare name found on PATH.
identity: Option<String>The one address a draft’s From may carry. Needs deny_file.
deny_file: Option<PathBuf>The deny list the content checks read.
attribution: Vec<String>Attribution phrases refused on top of the built-in ones.
Implementations§
Source§impl MailConfig
impl MailConfig
Sourcepub fn notmuch_bin(&self) -> &Path
pub fn notmuch_bin(&self) -> &Path
The notmuch binary to run.
Trait Implementations§
Source§impl Clone for MailConfig
impl Clone for MailConfig
Source§impl Debug for MailConfig
impl Debug for MailConfig
Source§impl Default for MailConfig
impl Default for MailConfig
impl Eq for MailConfig
Source§impl PartialEq for MailConfig
impl PartialEq for MailConfig
impl StructuralPartialEq for MailConfig
Auto Trait Implementations§
impl Freeze for MailConfig
impl RefUnwindSafe for MailConfig
impl Send for MailConfig
impl Sync for MailConfig
impl Unpin for MailConfig
impl UnsafeUnpin for MailConfig
impl UnwindSafe for MailConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more