aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-01 05:35:38 +0000
committerRichard M. Stallman1994-01-01 05:35:38 +0000
commit18260534da81dfb78170cee4d41843e72053ad8b (patch)
tree620e48d5e7b8677f354cebff0b2a2c2bc4afa484
parent3d2e9cea7eb0a9aafebef31302e341bd51c3dca4 (diff)
downloademacs-18260534da81dfb78170cee4d41843e72053ad8b.tar.gz
emacs-18260534da81dfb78170cee4d41843e72053ad8b.zip
(gnus-news-reply): Handle reply-to field.
-rw-r--r--lisp/gnuspost.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/gnuspost.el b/lisp/gnuspost.el
index 46c4d7a3761..5f5d4c42526 100644
--- a/lisp/gnuspost.el
+++ b/lisp/gnuspost.el
@@ -3,7 +3,6 @@
3;; Copyright (C) 1989, 1990, 1993 Free Software Foundation, Inc. 3;; Copyright (C) 1989, 1990, 1993 Free Software Foundation, Inc.
4 4
5;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> 5;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
6;; Version: $Header: /home/fsf/rms/e19/lisp/RCS/gnuspost.el,v 1.16 1993/11/22 06:44:12 rms Exp $
7;; Keywords: news 6;; Keywords: news
8 7
9;; This file is part of GNU Emacs. 8;; This file is part of GNU Emacs.
@@ -244,6 +243,8 @@ original message into it."
244 (search-forward "\n\n") 243 (search-forward "\n\n")
245 (point))))) 244 (point)))))
246 (setq from (mail-fetch-field "from")) 245 (setq from (mail-fetch-field "from"))
246 ;; Get reply-to working corrrectly for gnus-auto-mail-to-author (jpm)
247 (setq reply-to (mail-fetch-field "reply-to"))
247 (setq news-reply-yank-from from) 248 (setq news-reply-yank-from from)
248 (setq subject (mail-fetch-field "subject")) 249 (setq subject (mail-fetch-field "subject"))
249 (setq date (mail-fetch-field "date")) 250 (setq date (mail-fetch-field "date"))
@@ -310,11 +311,12 @@ original message into it."
310 (mail-position-on-field "FCC") 311 (mail-position-on-field "FCC")
311 (insert gnus-author-copy))) 312 (insert gnus-author-copy)))
312 ;; Insert To: FROM field, which is expected to mail the 313 ;; Insert To: FROM field, which is expected to mail the
313 ;; message to the author of the article too. 314 ;; message to the author of the article too. Use Reply-To
314 (if (and gnus-auto-mail-to-author from) 315 ;; field like gnus-mail-reply-using-m* (jpm).
316 (if (and gnus-auto-mail-to-author (or reply-to from))
315 (progn 317 (progn
316 (goto-char (point-min)) 318 (goto-char (point-min))
317 (insert "To: " from "\n"))) 319 (insert "To: " (or reply-to from) "\n")))
318 (goto-char (point-max))) 320 (goto-char (point-max)))
319 ;; Yank original article automatically. 321 ;; Yank original article automatically.
320 (if yank 322 (if yank