mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Ignore text/x-amp-html https://www.caniemail.com/features/amp/
This commit is contained in:
parent
8a461e7a3d
commit
daf0f089b8
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue