Fix Mime/Parser header detection: Don't render plaintext as Mime parts

This commit is contained in:
Till Wimmer 2026-02-11 18:11:45 +01:00
parent ba496919dd
commit 96f63ac1c5
2 changed files with 17 additions and 4 deletions

View file

@ -13,7 +13,7 @@ import { EmailModel } from 'Model/Email';
export function MimeToMessage(data, message)
{
const struct = ParseMime(data);
if (struct.headers) {
if (struct.headRaw) {
let html = struct.getByContentType('text/html'),
subject = struct.headerValue('subject');
html = html ? html.body : '';