Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
08960da1
Commit
08960da1
authored
Feb 03, 1995
by
Karl Heuer
Browse files
(rmail-reply-regexp): New var.
(rmail-reply): Delete text matching rmail-reply-regexp.
parent
438c6ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lisp/mail/rmail.el
lisp/mail/rmail.el
+11
-4
No files found.
lisp/mail/rmail.el
View file @
08960da1
;;; rmail.el --- main code of "RMAIL" mail reader for Emacs.
;; Copyright (C) 1985,86,87,88,93,94 Free Software Foundation, Inc.
;; Copyright (C) 1985,86,87,88,93,94
,95
Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: mail
...
...
@@ -122,6 +122,11 @@ Called with region narrowed to the message, including headers.")
(defvar rmail-reply-prefix "Re: "
"String to prepend to Subject line when replying to a message.")
;; Some mailers use "Re(2):" or "Re^2:" or "Re: Re:".
;; This pattern should catch all the common variants.
(defvar rmail-reply-regexp "\\`\\(Re\\(([0-9]+)\\|\\^[0-9]+\\
)
?:
*\\
)
*
"
"
Regexp
to
delete
from
Subject
line
before
inserting
rmail-reply-prefix.
")
(defvar rmail-display-summary nil
"
If
non
nil
,
the
summary
buffer
is
always
displayed.
")
...
...
@@ -1975,9 +1980,11 @@ use \\[mail-yank-original] to yank the original message into it."
(mail-fetch-field "resent-message-id" t))
((mail-fetch-field "message-id"))))))
(and (stringp subject)
(
or
(
string-match
(
concat
"\\`"
(
regexp-quote
rmail-reply-prefix
))
subject
)
(
setq
subject
(
concat
rmail-reply-prefix
subject
))))
(setq subject
(concat rmail-reply-prefix
(if (string-match rmail-reply-regexp subject)
(substring subject (match-end 0))
subject))))
(rmail-start-mail nil
(mail-strip-quoted-names reply-to)
subject
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment