From: Katsumi Yamaoka Date: Mon, 19 Nov 2012 06:24:03 +0000 (+0000) Subject: message.el (message-get-reply-headers): Make sure the reply goes to the author if... X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=255972400f9f7d4e57054447fdad1abc6efc0a7b message.el (message-get-reply-headers): Make sure the reply goes to the author if it is a wide reply --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c1aaf7240..07f54757c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-11-19 Katsumi Yamaoka + + * message.el (message-get-reply-headers): + Make sure the reply goes to the author if it is a wide reply. + 2012-11-16 Jan Tatarik * gnus-score.el (gnus-score-body): diff --git a/lisp/message.el b/lisp/message.el index bd50e432f..02c6b70ee 100644 --- a/lisp/message.el +++ b/lisp/message.el @@ -6774,11 +6774,16 @@ The function is called with one parameter, a cons cell ..." ", ")) mct (message-fetch-field "mail-copies-to") author (or (message-fetch-field "mail-reply-to") - (message-fetch-field "reply-to") - (message-fetch-field "from") - "") + (message-fetch-field "reply-to")) mft (and message-use-mail-followup-to - (message-fetch-field "mail-followup-to")))) + (message-fetch-field "mail-followup-to"))) + ;; Make sure this message goes to the author if this is a wide + ;; reply, sine Reply-To address may be a list address a mailing + ;; list server added. + (when (and wide author) + (setq cc (concat author ", " cc))) + (when (or wide (not author)) + (setq author (or (message-fetch-field "from") "")))) ;; Handle special values of Mail-Copies-To. (when mct