feat: enhance email body handling by prioritizing textBody for minimal HTML and expanding JMAPClient properties

This commit is contained in:
Linus Rath
2026-03-18 14:53:08 +01:00
parent 19584cfef6
commit b1db100c3a
3 changed files with 30 additions and 3 deletions
+10 -1
View File
@@ -1088,7 +1088,16 @@ export class JMAPClient {
["Email/get", {
accountId: targetAccountId,
ids: thread.emailIds,
properties: [...EMAIL_LIST_PROPERTIES],
properties: [
...EMAIL_LIST_PROPERTIES,
"textBody", "htmlBody", "bodyValues",
"attachments", "blobId", "sentAt", "bcc", "replyTo",
"messageId", "inReplyTo", "references", "headers", "bodyStructure",
],
fetchTextBodyValues: true,
fetchHTMLBodyValues: true,
fetchAllBodyValues: true,
maxBodyValueBytes: 256000,
}, "0"],
]);