mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
melib/backends: add extra_submission_headers field in MailBackendCapabilities struct
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
This commit is contained in:
parent
3d85ca2edf
commit
e88957ae6e
@ -37,7 +37,7 @@ use super::email::{Envelope, EnvelopeHash, Flag};
|
||||
use crate::{
|
||||
conf::AccountSettings,
|
||||
error::{Error, ErrorKind, Result},
|
||||
LogLevel,
|
||||
HeaderName, LogLevel,
|
||||
};
|
||||
|
||||
#[macro_export]
|
||||
@ -328,6 +328,7 @@ pub struct MailBackendCapabilities {
|
||||
pub supports_search: bool,
|
||||
pub supports_tags: bool,
|
||||
pub supports_submission: bool,
|
||||
pub extra_submission_headers: &'static [HeaderName],
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
|
@ -292,6 +292,7 @@ impl MailBackend for ImapType {
|
||||
extensions: Some(extensions),
|
||||
supports_tags: true,
|
||||
supports_submission: false,
|
||||
extra_submission_headers: &[],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -299,6 +299,7 @@ impl MailBackend for JmapType {
|
||||
extensions: None,
|
||||
supports_tags: true,
|
||||
supports_submission: true,
|
||||
extra_submission_headers: &[],
|
||||
};
|
||||
let supports_submission: bool = self
|
||||
.store
|
||||
|
@ -186,6 +186,7 @@ impl MailBackend for MaildirType {
|
||||
extensions: None,
|
||||
supports_tags: false,
|
||||
supports_submission: false,
|
||||
extra_submission_headers: &[],
|
||||
};
|
||||
CAPABILITIES
|
||||
}
|
||||
|
@ -836,6 +836,7 @@ impl MailBackend for MboxType {
|
||||
extensions: None,
|
||||
supports_tags: false,
|
||||
supports_submission: false,
|
||||
extra_submission_headers: &[],
|
||||
};
|
||||
CAPABILITIES
|
||||
}
|
||||
|
@ -217,6 +217,7 @@ impl MailBackend for NntpType {
|
||||
extensions: Some(extensions),
|
||||
supports_tags: false,
|
||||
supports_submission,
|
||||
extra_submission_headers: &[HeaderName::NEWSGROUPS],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -603,6 +603,7 @@ impl MailBackend for NotmuchDb {
|
||||
extensions: None,
|
||||
supports_tags: true,
|
||||
supports_submission: false,
|
||||
extra_submission_headers: &[],
|
||||
};
|
||||
CAPABILITIES
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user