mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-18 06:11:20 +00:00
setFromIdentity located the previous signature by embedding its HTML in a regular expression. Metacharacters, plain text and CKEditor's <br> serialization made the search miss, and the regex-too-large fallback appended the new signature. The delimiter is now matched with a fixed-size pattern. The signature body is compared as text, from the end of the break that follows the dash. A missed match is null. One missing blank line before the delimiter is still recognized. Fixes #6168 Fixes #6214 Fixes #5695