Issue Bug Closed

#96218SpamAssasin HTML_MIME_NO_HTML_TAG

Marco von Arx 12/03/21, 11:52 updated 08/12/25, 14:36

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

Reviews 3

Files 1

History 915

  1. Marco von Arx changed subject SpamAssi HTML_MIME_NO_HTML_TAG SpamAssasin HTML_MIME_NO_HTML_TAG <span data-processor="relativetime" data-value="2021-12-03T11:52:56+00:00" > 12/03/21, 11:52 </span>

  2. Georg Ringer commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2021-12-07T10:14:57+00:00" > 12/07/21, 10:14 </span>

    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?

  3. Marco von Arx commented <span data-processor="relativetime" data-value="2021-12-07T11:50:18+00:00" > 12/07/21, 11:50 </span>

    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)

  4. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2024-12-11T14:29:53+00:00" > 12/11/24, 14:29 </span>

    Hey,

    can you recheck with v12 or v13? We now fixed a lot of things in fluid v4.

  5. Gerrit Code Review pushed patch set 1 for main to change 87464 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2024-12-12T08:13:56+00:00" > 12/12/24, 08:13 </span>

  6. Garvin Hicking commented and changed target version <span data-processor="relativetime" data-value="2024-12-12T08:14:44+00:00" > 12/12/24, 08:14 </span>

    @benni
    In fact also v14 main still strips
    <html...>
    from the output. I’ve pushed a patch.
  7. Marco von Arx commented <span data-processor="relativetime" data-value="2024-12-12T08:19:38+00:00" > 12/12/24, 08:19 </span>

    Benni Mack wrote in #note-5:
    > Hey,
    >
    > can you recheck with v12 or v13? We now fixed a lot of things in fluid v4.

    I can confirm that v12 strips html tag

  8. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-12-16T16:00:16+00:00" > 12/16/24, 16:00 </span>

    Applied in changeset commit:da6576ad2282f2a22c452f624c98d5416efcf000.