diff options
| author | Richard M. Stallman | 1997-01-31 09:35:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-01-31 09:35:39 +0000 |
| commit | 11aea8f56dd0bc95c444ccabc3e44affdace67f1 (patch) | |
| tree | 874ab569d9bdb3079ab9626d08754f8b878a1b2f | |
| parent | b7bf1cef3358ed09fba928ccd1a14e1b8aaa3f82 (diff) | |
| download | emacs-11aea8f56dd0bc95c444ccabc3e44affdace67f1.tar.gz emacs-11aea8f56dd0bc95c444ccabc3e44affdace67f1.zip | |
(rmail-reply): Copy all the References: headers
from the original message.
| -rw-r--r-- | lisp/mail/rmail.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 79123bb0591..56d21765086 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -2235,7 +2235,7 @@ Normally include CC: to all other recipients of original message; | |||
| 2235 | prefix argument means ignore them. While composing the reply, | 2235 | prefix argument means ignore them. While composing the reply, |
| 2236 | use \\[mail-yank-original] to yank the original message into it." | 2236 | use \\[mail-yank-original] to yank the original message into it." |
| 2237 | (interactive "P") | 2237 | (interactive "P") |
| 2238 | (let (from reply-to cc subject date to message-id | 2238 | (let (from reply-to cc subject date to message-id references |
| 2239 | resent-to resent-cc resent-reply-to | 2239 | resent-to resent-cc resent-reply-to |
| 2240 | (msgnum rmail-current-message) | 2240 | (msgnum rmail-current-message) |
| 2241 | (rmail-buffer (current-buffer))) | 2241 | (rmail-buffer (current-buffer))) |
| @@ -2263,7 +2263,8 @@ use \\[mail-yank-original] to yank the original message into it." | |||
| 2263 | date (mail-fetch-field "date") | 2263 | date (mail-fetch-field "date") |
| 2264 | to (or (mail-fetch-field "to" nil t) "") | 2264 | to (or (mail-fetch-field "to" nil t) "") |
| 2265 | message-id (mail-fetch-field "message-id") | 2265 | message-id (mail-fetch-field "message-id") |
| 2266 | resent-reply-to (mail-fetch-field "resent-reply-to" t) | 2266 | references (mail-fetch-field "references" nil nil t) |
| 2267 | resent-reply-to (mail-fetch-field "resent-reply-to" nil t) | ||
| 2267 | resent-cc (and (not just-sender) | 2268 | resent-cc (and (not just-sender) |
| 2268 | (mail-fetch-field "resent-cc" nil t)) | 2269 | (mail-fetch-field "resent-cc" nil t)) |
| 2269 | resent-to (or (mail-fetch-field "resent-to" nil t) "") | 2270 | resent-to (or (mail-fetch-field "resent-to" nil t) "") |
| @@ -2303,7 +2304,12 @@ use \\[mail-yank-original] to yank the original message into it." | |||
| 2303 | (save-excursion | 2304 | (save-excursion |
| 2304 | (set-buffer rmail-send-actions-rmail-buffer) | 2305 | (set-buffer rmail-send-actions-rmail-buffer) |
| 2305 | (if msgnum | 2306 | (if msgnum |
| 2306 | (rmail-set-attribute "answered" t msgnum)))))))) | 2307 | (rmail-set-attribute "answered" t msgnum))))))) |
| 2308 | nil | ||
| 2309 | (cons (cons "References" message-id) | ||
| 2310 | (mapcar (function (lambda (elt) | ||
| 2311 | (cons "References" elt))) | ||
| 2312 | references))) | ||
| 2307 | ;; We keep the rmail buffer and message number in these | 2313 | ;; We keep the rmail buffer and message number in these |
| 2308 | ;; buffer-local vars in the sendmail buffer, | 2314 | ;; buffer-local vars in the sendmail buffer, |
| 2309 | ;; so that rmail-only-expunge can relocate the message number. | 2315 | ;; so that rmail-only-expunge can relocate the message number. |