aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorKarl Heuer1997-02-23 07:09:01 +0000
committerKarl Heuer1997-02-23 07:09:01 +0000
commita21b845bc9976f4cb2e25a4d5db6339e3099b0ec (patch)
tree36cc91ac5ab871f3558efe3492080dd6d302e730 /lisp/mail
parent2c30b2fc06bbd85c2e1e4b0e61d015769a517391 (diff)
downloademacs-a21b845bc9976f4cb2e25a4d5db6339e3099b0ec.tar.gz
emacs-a21b845bc9976f4cb2e25a4d5db6339e3099b0ec.zip
(rmail-next-same-subject, rmail-reply): Ignore case, to
match "RE:" as well as "Re:".
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el6
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