Project

General

Profile

Actions

Bug #96218

open

SpamAssasin HTML_MIME_NO_HTML_TAG

Added by Marco von Arx over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Mailer API
Target version:
-
Start date:
2021-12-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Because of the attribute data-namespace-typo3-fluid the html element is removed during rendering the template.

SpamAssassin reports HTML_MIME_NO_HTML_TAG. See attachment.

my work around is to copy and modify EXT:core/Resources/Private/Layouts/SystemEmail.html

from
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

to
{namespace f= TYPO3\CMS\Fluid\ViewHelpers}
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

data-namespace-typo3-fluid was introduced in v7.3 and may affect any typo3 version since then
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/7.3/Feature-66269-FluidRemoveViewHelperXmlnsAttributesAndSpecifiedHtmlTag.html


Files

Actions #1

Updated by Marco von Arx over 2 years ago

  • Subject changed from SpamAssi HTML_MIME_NO_HTML_TAG to SpamAssasin HTML_MIME_NO_HTML_TAG
Actions #2

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Needs Feedback

I just tested this in latest master but should be the same in 10.4 as well, e.g. by using the Test mail feature in the Install Tool

the output of the mail is

--uQoOTDuX
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!doctype html>

<head>

the attribute data-namespace-typo3-fluid should be removed by fluid.
composer show | grep fluid shows me

typo3fluid/fluid                           2.7.1

which fluid version are you using?

Actions #3

Updated by Marco von Arx over 2 years ago

Version is 2.6.10, which is shipped with typo3 v10.4.20

In your output i see that the html-tag is also missing.

Between doctype (line 5) and head (line 7) should be a html-tag.
fluid entirely removes the html-tag (because of data-namespace-typo3-fluid)

Actions #4

Updated by Riccardo De Contardi over 1 year ago

  • Status changed from Needs Feedback to New
Actions

Also available in: Atom PDF