Repository navigation
fix: summarize with email-ai-tools 3.0.13 and convert with email-text-tools 3.1.4 - #723
Conversation
In 3.0.9 about 50KB of unclosed nested template elements overflowed the call stack and made the AI summary fail, so a sender could keep a message out of the risk scoring. 3.0.10 counts a template's content toward the nesting limit from the template.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
3.0.10 still let about 16KB of formatting elements wrapped around blocks grow the tree past the nesting limit, so the AI summary failed. 3.0.11 measures depth on the tree as built and leaves out anything past the limit, whichever parser rule placed it there.
3.0.12 keeps a table cell span only up to 999, so a colspan or rowspan in the thousands no longer overflows the text converter's stack and makes the AI summary fail.
A colspan or rowspan of several thousand made the HTML to text conversion throw, so a message sent with HTML only, or a reply quoting such a message, went out without its plain text part. email-text-tools 3.1.4 caps such spans, and email-ai-tools 3.0.13 moves to it so only one copy is installed.
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Updates
@postalsys/email-ai-toolsto 3.0.13 and@postalsys/email-text-toolsto 3.1.4 (vianpm run update). Each is installed once. 2.91.3 ships email-ai-tools 3.0.9, where a sender can make the AI summary fail and keep a message out of the risk scoring in three ways: about 50 KB of unclosed nested<template>elements (fixed in 3.0.10), about 16 KB of formatting elements wrapped around blocks (3.0.11), or a table cell span in the thousands (3.0.12). That last one also madehtmlToText()throw, so a message sent with HTML only, or a reply quoting such a message, lost its plain text part (fixed in email-text-tools 3.1.4). Release notes: https://github.com/postalsys/email-ai-tools/releases, https://github.com/postalsys/email-text-tools/releases/tag/v3.1.4.npm run test:cjspasses (6541/6541).