summaryrefslogtreecommitdiff
path: root/src/components/mail/pgp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mail/pgp.rs')
-rw-r--r--src/components/mail/pgp.rs8
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())
})