Review 13.4 Merged

92351[BUGFIX] Allow AbstractPart and File in spooled email deserialization

Markus Klein CR +2 V +2 Normal +111 −30 updated 01/19/26, 09:43

Commit message

The FileSpool deserialization previously failed when processing complex
emails containing Symfony Mime AbstractPart or File objects, causing
valid messages to be rejected and deleted. This adds AbstractPart and
File to the allowed classes list in the PolymorphicDeserializer.

Additionally, improve error handling by preserving failed messages:
- Rename deserialization failures to ".invalid" instead of deleting
- Retain ".sending" files when transport fails (allows retry)
- Include original exception details in error logs for debugging

This enables proper handling of emails with attachments, embedded
files, and complex MIME structures while improving troubleshooting
capabilities through better error preservation and logging.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 2

Files 3

Review log 46

  1. Markus Klein commented on patch set 1 01/16/26, 12:56

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 01/16/26, 13:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93601

  3. Benjamin Franzke commented on patch set 2 V +1 01/19/26, 07:43

    Cherry Picked from branch main.
  4. core-ci voted on patch set 2 V +1 01/19/26, 07:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93751

  5. Benjamin Franzke voted on patch set 2 CR +2 V +2 01/19/26, 09:43

  6. Benjamin Franzke merged patch set 3 01/19/26, 09:43