From 646138eaebfdf7caa7cb411aa8c77498739a2b82 Mon Sep 17 00:00:00 2001 From: JoachimM7 <32777429+JoachimM7@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:44:00 +0100 Subject: [PATCH] =?UTF-8?q?Korrektur=20RFC-Standard=20f=C3=BCr=20EML-Expor?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit name und filename müssen nach dem RFC-Standard escaped werden. Ist das - wie bisher - nicht der Fall, können einige MIME-Parser die .eml-Datei nicht korrekt lesen --- src/mail-app/mail/export/Exporter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mail-app/mail/export/Exporter.ts b/src/mail-app/mail/export/Exporter.ts index 9cbe04df468..c78084f518d 100644 --- a/src/mail-app/mail/export/Exporter.ts +++ b/src/mail-app/mail/export/Exporter.ts @@ -202,10 +202,10 @@ export function mailToEml(mail: MailBundle): string { lines.push( "--------------79Bu5A16qPEYcVIZL@tutanota", "Content-Type: " + getCleanedMimeType(attachment.mimeType) + ";", - " name=" + base64Filename + "", + " name=\"" + base64Filename + "\"", "Content-Transfer-Encoding: base64", "Content-Disposition: attachment;", - " filename=" + base64Filename + "", + " filename=\"" + base64Filename + "\"", ) if (attachment.cid) {