From 0cac28e7adea1364e57d6d23dec53f9488aa24d6 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Fri, 14 Feb 2025 16:26:49 +0100 Subject: [PATCH] Use 'password-colon-equivalents' when matching "Re" variants * lisp/mail/mail-utils.el (mail--wrap-re-regexp): Use 'password-colon-equivalents'. (cherry picked from commit 0c8ec155f60bdebaf2f7a86e57e7c559c5552821) --- lisp/mail/mail-utils.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index d7748ffe6aa..d51e2747ba3 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el @@ -52,8 +52,10 @@ also the To field, unless this would leave an empty To field." re ; Re(1) or Re[1] or Re^1 "\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?" - ; SPC/NBSP followed by colon and TAB/SPC - " ?\u00a0*[::][ \t]*" + ; SPC/NBSP followed by various colon variants and TAB/SPC + " ?\u00a0*" + "[" password-colon-equivalents "]" + "[ \t]*" ; Handle repetition, eg "Re[1]: Re[2]:" "\\)*" "[ \t]*")) -- 2.39.5