diff options
| -rw-r--r-- | lisp/mail/rmail.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index c4565650fe2..3e2d5eae86b 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -158,7 +158,7 @@ before obeying `rmail-ignored-headers'.") | |||
| 158 | (defvar rmail-reply-prefix "Re: " | 158 | (defvar rmail-reply-prefix "Re: " |
| 159 | "String to prepend to Subject line when replying to a message.") | 159 | "String to prepend to Subject line when replying to a message.") |
| 160 | 160 | ||
| 161 | ;; Some mailers use "Re(2):" or "Re^2:" or "Re: Re:" or "Re[2]". | 161 | ;; Some mailers use "Re(2):" or "Re^2:" or "Re: Re:" or "Re[2]:". |
| 162 | ;; This pattern should catch all the common variants. | 162 | ;; This pattern should catch all the common variants. |
| 163 | (defvar rmail-reply-regexp "\\`\\(Re\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?: *\\)*" | 163 | (defvar rmail-reply-regexp "\\`\\(Re\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?: *\\)*" |
| 164 | "Regexp to delete from Subject line before inserting `rmail-reply-prefix'.") | 164 | "Regexp to delete from Subject line before inserting `rmail-reply-prefix'.") |
| @@ -2006,6 +2006,7 @@ If N is negative, go backwards instead." | |||
| 2006 | (let ((subject (mail-fetch-field "Subject")) | 2006 | (let ((subject (mail-fetch-field "Subject")) |
| 2007 | (forward (> n 0)) | 2007 | (forward (> n 0)) |
| 2008 | (i rmail-current-message) | 2008 | (i rmail-current-message) |
| 2009 | (case-fold-search t) | ||
| 2009 | search-regexp found) | 2010 | search-regexp found) |
| 2010 | (if (string-match "Re:[ \t]*" subject) | 2011 | (if (string-match "Re:[ \t]*" subject) |
| 2011 | (setq subject (substring subject (match-end 0)))) | 2012 | (setq subject (substring subject (match-end 0)))) |
| @@ -2308,7 +2309,8 @@ use \\[mail-yank-original] to yank the original message into it." | |||
| 2308 | (and (stringp subject) | 2309 | (and (stringp subject) |
| 2309 | (setq subject | 2310 | (setq subject |
| 2310 | (concat rmail-reply-prefix | 2311 | (concat rmail-reply-prefix |
| 2311 | (if (string-match rmail-reply-regexp subject) | 2312 | (if (let ((case-fold-search t)) |
| 2313 | (string-match rmail-reply-regexp subject)) | ||
| 2312 | (substring subject (match-end 0)) | 2314 | (substring subject (match-end 0)) |
| 2313 | subject)))) | 2315 | subject)))) |
| 2314 | (rmail-start-mail nil | 2316 | (rmail-start-mail nil |