From 28d421b065e38f24d39a49dbaa018f1975303653 Mon Sep 17 00:00:00 2001 From: Ben Marx Date: Tue, 21 Feb 2023 22:12:19 +0100 Subject: [PATCH 1/2] Encode all periods --- config/mail/encoding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mail/encoding.ts b/config/mail/encoding.ts index da01e57..8b366f0 100644 --- a/config/mail/encoding.ts +++ b/config/mail/encoding.ts @@ -23,7 +23,7 @@ export function quotedPrintableEncode(data: string, encLB = false) { if (encodedChar.length === 1) { const code = encodedChar[0]; - if (code >= 32 && code <= 126 && code !== 61) return ch; + if (code >= 32 && code <= 126 && code !== 61 && code !== 46) return ch; if (!encLB && (code === 10 || code === 13)) return ch; if (code === 9) return ch; } From 86895c27ee0228c4ed030ead71c5585a9a0f0552 Mon Sep 17 00:00:00 2001 From: Ben Marx Date: Tue, 21 Feb 2023 22:15:12 +0100 Subject: [PATCH 2/2] Removed no-op --- config/mail/encoding.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/config/mail/encoding.ts b/config/mail/encoding.ts index 8b366f0..f1a9e8c 100644 --- a/config/mail/encoding.ts +++ b/config/mail/encoding.ts @@ -10,7 +10,6 @@ const encoder = new TextEncoder(); * @returns encoded string */ export function quotedPrintableEncode(data: string, encLB = false) { - data.replaceAll("=", "=3D"); if (!encLB) { data = data.replaceAll(" \r\n", "=20\r\n").replaceAll(" \n", "=20\n");