diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-12-09 14:06:20 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-12-09 14:06:20 +0200 |
commit | 40c6647db83c5137b79c9bec233972a8a78aeb76 (patch) | |
tree | 178afa922b0a985140817eb3f792d284afef262a /src/components/mail/pgp.rs | |
parent | f63ce388f7774ea015fdaa2362202c33f3ddacd4 (diff) | |
download | meli-40c6647db83c5137b79c9bec233972a8a78aeb76.zip |
Fix multipart/related with main text/html part not displayed correctly
Diffstat (limited to 'src/components/mail/pgp.rs')
-rw-r--r-- | src/components/mail/pgp.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/mail/pgp.rs b/src/components/mail/pgp.rs index 7fce3f7f..ccdadff0 100644 --- a/src/components/mail/pgp.rs +++ b/src/components/mail/pgp.rs @@ -71,9 +71,10 @@ pub fn sign_filter( boundary: boundary.into_bytes(), kind: MultipartType::Signed, parts: parts.into_iter().map(|a| a.into()).collect::<Vec<_>>(), + parameters: vec![], }, Default::default(), - Vec::new(), + vec![], ) .into()) }) @@ -100,7 +101,7 @@ pub fn encrypt_filter( let sig_attachment = { let mut a = Attachment::new( - ContentType::OctetStream { name: None }, + ContentType::OctetStream { name: None, parameters: vec![] }, Default::default(), ctx.encrypt(sign_keys, encrypt_keys, data)?.await?, ); @@ -117,9 +118,10 @@ pub fn encrypt_filter( boundary: boundary.into_bytes(), kind: MultipartType::Encrypted, parts: parts.into_iter().map(|a| a.into()).collect::<Vec<_>>(), + parameters: vec![], }, Default::default(), - Vec::new(), + vec![], ) .into()) }) |