quentez / talonjs

JavaScript port of the Talon email quote parsing library.
MIT License
15 stars 9 forks source link

Fail on message bigger than 1000 tags #17

Closed evonck closed 5 years ago

evonck commented 5 years ago

Handle error when the node limit is crossed. When an email contains more than 1000 tags we used to stop parsing the tag and look for a quotation in the email using only 1000 tags. This resulted in mail where the quotation where being truncated. If the message has too many tag we will not parse it. Also add a isTooLong info on the parameter to know if the message has been filtered for quote.