Use 'password-colon-equivalents' when matching "Re" variants

* lisp/mail/mail-utils.el (mail--wrap-re-regexp): Use
'password-colon-equivalents'.
This commit is contained in:
Robert Pluim 2025-02-14 16:26:49 +01:00
parent bca04d3c58
commit 0c8ec155f6

View file

@ -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]*"))