mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Fix last change
* lisp/mail/rmail.el (rmail-simplified-subject): A prefix can have up to 4 characters, not 3.
This commit is contained in:
parent
49f2811f78
commit
c395ebaf21
@ -3408,7 +3408,7 @@ whitespace, replacing whitespace runs with a single space and
|
||||
removing prefixes such as Re:, Fwd: and so on and mailing list
|
||||
tags such as [tag]."
|
||||
(let ((subject (or (rmail-get-header "Subject" msgnum) ""))
|
||||
(regexp "\\`[ \t\n]*\\(\\(\\w\\{1,3\\}[::]\\|\\[[^]]+]\\)[ \t\n]+\\)*"))
|
||||
(regexp "\\`[ \t\n]*\\(\\(\\w\\{1,4\\}[::]\\|\\[[^]]+]\\)[ \t\n]+\\)*"))
|
||||
(setq subject (rfc2047-decode-string subject))
|
||||
(setq subject (replace-regexp-in-string regexp "" subject))
|
||||
(replace-regexp-in-string "[ \t\n]+" " " subject)))
|
||||
|
Loading…
Reference in New Issue
Block a user