emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c395eba: Fix last change


From: Eli Zaretskii
Subject: master c395eba: Fix last change
Date: Mon, 13 Apr 2020 05:26:51 -0400 (EDT)

branch: master
commit c395ebaf2142b4a142262353f730fb7b1fcea710
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix last change
    
    * lisp/mail/rmail.el (rmail-simplified-subject): A prefix can have
    up to 4 characters, not 3.
---
 lisp/mail/rmail.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 6c98473..40d3470 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]