getmailbody calls fixed see #680

This commit is contained in:
mic 2026-04-19 22:43:44 +02:00
parent 7b99c1c5b3
commit e4f8fcf678

View file

@ -151,7 +151,7 @@ export const taPromptUtils = {
const messages_list = [];
for (let entry of messageDataArray) {
const bodyHtml = getMailBody(entry.fullMessage);
const bodyHtml = await getMailBody(entry.fullMessage);
let bodyText = htmlBodyToPlainText(bodyHtml.html);
if (bodyText.length === 0) {
bodyText = bodyHtml.text || '';
@ -182,7 +182,7 @@ export const taPromptUtils = {
promptText = browser.i18n.getMessage('prompt_translate_this_full_text');
}
const bodyHtml = getMailBody(fullMessage);
const bodyHtml = await getMailBody(fullMessage);
const mailSubject = fullMessage.headers?.subject?.[0] || '';
const finalSubs = await placeholdersUtils.getPlaceholdersValues({