This commit is contained in:
the-djmaze 2026-11-02 18:07:34 +01:00
parent 1cd80f94c7
commit 024343b612
2 changed files with 12 additions and 3 deletions

View file

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