mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
9ab9665e99
Attachments were treated as ready-made HTML, but a real mail is multipart with base64 or quoted-printable transfer encoding. What reached the model was the plaintext headers followed by a wall of base64, truncated before any content — which is why a sender name from the Subject line still showed up while the booking never did. The html part is preferred, plain text is the fallback, transfer encoding and charset are decoded and entities resolved before the text goes out. No new dependency. If no text part is found the previous raw path still runs.