Struct deltachat::mimefactory::MessageHeaders
source · struct MessageHeaders {
pub protected: Vec<Header>,
pub unprotected: Vec<Header>,
pub hidden: Vec<Header>,
}
Fields§
§protected: Vec<Header>
Opportunistically protected headers.
These headers are placed into encrypted part if the message is encrypted. Place headers which are not needed before decryption (e.g. Chat-Group-Name) or are not interesting if the message cannot be decrypted (e.g. Chat-Disposition-Notification-To) here.
If the message is not encrypted, these headers are placed into IMF header section, so make sure that the message will be encrypted if you place any sensitive information here.
unprotected: Vec<Header>
Headers that must go into IMF header section.
These are standard headers such as Date, In-Reply-To, References, which cannot be placed anywhere else according to the standard. Placing headers here also allows them to be fetched individually over IMAP without downloading the message body. This is why Chat-Version is placed here.
Headers that MUST NOT go into IMF header section.
These are large headers which may hit the header section size limit on the server, such as Chat-User-Avatar with a base64-encoded image inside. Also there are headers duplicated here that servers mess up with in the IMF header section, like Message-ID.
Trait Implementations§
source§impl Clone for MessageHeaders
impl Clone for MessageHeaders
source§fn clone(&self) -> MessageHeaders
fn clone(&self) -> MessageHeaders
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more