From daf0f089b8384d3337f6964196baa239d1540471 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 14 Apr 2024 15:15:15 +0200 Subject: [PATCH] Ignore text/x-amp-html https://www.caniemail.com/features/amp/ --- .../v/0.0.0/app/libraries/MailSo/Imap/BodyStructure.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/BodyStructure.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/BodyStructure.php index 8e8c7bf6f..f9adf6497 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/BodyStructure.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/BodyStructure.php @@ -118,7 +118,10 @@ class BodyStructure implements \JsonSerializable public function isText() : bool { - return 'text/html' === $this->sContentType || 'text/plain' === $this->sContentType; + return 'text/html' === $this->sContentType + || 'text/plain' === $this->sContentType + // Also the useless AMP content + || 'text/x-amp-html' === $this->sContentType; } // https://datatracker.ietf.org/doc/html/rfc3156#section-4