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::{
|
use crate::{
|
||||||
conf::AccountSettings,
|
conf::AccountSettings,
|
||||||
error::{Error, ErrorKind, Result},
|
error::{Error, ErrorKind, Result},
|
||||||
LogLevel,
|
HeaderName, LogLevel,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
@ -328,6 +328,7 @@ pub struct MailBackendCapabilities {
|
|||||||
pub supports_search: bool,
|
pub supports_search: bool,
|
||||||
pub supports_tags: bool,
|
pub supports_tags: bool,
|
||||||
pub supports_submission: bool,
|
pub supports_submission: bool,
|
||||||
|
pub extra_submission_headers: &'static [HeaderName],
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
|
@ -292,6 +292,7 @@ impl MailBackend for ImapType {
|
|||||||
extensions: Some(extensions),
|
extensions: Some(extensions),
|
||||||
supports_tags: true,
|
supports_tags: true,
|
||||||
supports_submission: false,
|
supports_submission: false,
|
||||||
|
extra_submission_headers: &[],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ impl MailBackend for JmapType {
|
|||||||
extensions: None,
|
extensions: None,
|
||||||
supports_tags: true,
|
supports_tags: true,
|
||||||
supports_submission: true,
|
supports_submission: true,
|
||||||
|
extra_submission_headers: &[],
|
||||||
};
|
};
|
||||||
let supports_submission: bool = self
|
let supports_submission: bool = self
|
||||||
.store
|
.store
|
||||||
|
@ -186,6 +186,7 @@ impl MailBackend for MaildirType {
|
|||||||
extensions: None,
|
extensions: None,
|
||||||
supports_tags: false,
|
supports_tags: false,
|
||||||
supports_submission: false,
|
supports_submission: false,
|
||||||
|
extra_submission_headers: &[],
|
||||||
};
|
};
|
||||||
CAPABILITIES
|
CAPABILITIES
|
||||||
}
|
}
|
||||||
|
@ -836,6 +836,7 @@ impl MailBackend for MboxType {
|
|||||||
extensions: None,
|
extensions: None,
|
||||||
supports_tags: false,
|
supports_tags: false,
|
||||||
supports_submission: false,
|
supports_submission: false,
|
||||||
|
extra_submission_headers: &[],
|
||||||
};
|
};
|
||||||
CAPABILITIES
|
CAPABILITIES
|
||||||
}
|
}
|
||||||
|
@ -217,6 +217,7 @@ impl MailBackend for NntpType {
|
|||||||
extensions: Some(extensions),
|
extensions: Some(extensions),
|
||||||
supports_tags: false,
|
supports_tags: false,
|
||||||
supports_submission,
|
supports_submission,
|
||||||
|
extra_submission_headers: &[HeaderName::NEWSGROUPS],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -603,6 +603,7 @@ impl MailBackend for NotmuchDb {
|
|||||||
extensions: None,
|
extensions: None,
|
||||||
supports_tags: true,
|
supports_tags: true,
|
||||||
supports_submission: false,
|
supports_submission: false,
|
||||||
|
extra_submission_headers: &[],
|
||||||
};
|
};
|
||||||
CAPABILITIES
|
CAPABILITIES
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user