From 384230f7bf250b3968291494a011724e3f194482 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 3 Feb 2022 23:36:48 +0100 Subject: [PATCH] Cleaner Content-Type detection for mimeToMessage() --- dev/View/User/MailBox/MessageView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/View/User/MailBox/MessageView.js b/dev/View/User/MailBox/MessageView.js index 7e228d0ac..0cd1b1a81 100644 --- a/dev/View/User/MailBox/MessageView.js +++ b/dev/View/User/MailBox/MessageView.js @@ -62,7 +62,7 @@ const mimeToMessage = (data, message) => { // TODO: Check multipart/signed application/pgp-signature application/pgp-keys const headers = data.split(/\r?\n\r?\n/)[0]; - if (/Content-Type:[\s\S]*?;\s*boundary=/.test(headers)) { + if (/Content-Type:[\s\S]*?/.test(headers)) { // https://github.com/postalsys/postal-mime (new PostalMime).parse(data).then(result => { // TODO: multipart/signed