mail/pgp: add newline after Version: 1 header

pull/260/head
Manos Pitsidianakis 2023-07-16 11:46:45 +03:00
parent e9cd800f49
commit 8abc9358a7
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ pub fn encrypt_filter(
a.content_disposition = ContentDisposition::from(r#"attachment; filename="msg.asc""#.as_bytes());
a
};
let mut a: AttachmentBuilder = AttachmentBuilder::new("Version: 1".as_bytes());
let mut a: AttachmentBuilder = AttachmentBuilder::new("Version: 1\n".as_bytes());
a.set_content_type_from_bytes("application/pgp-encrypted".as_bytes());
a.set_content_disposition(ContentDisposition::from("attachment".as_bytes()));
let parts = vec![a, sig_attachment.into()];