# HG changeset patch # User Karl Heuer # Date 824844105 0 # Node ID ab3a6813575a08f3b03deb3b163806e385771b06 # Parent b9daaf52fc01b89d594c105153daca3a1de25a5f (gnus-inews-insert-headers): Check whether Sender and From are equal before inserting a Sender header. diff -r b9daaf52fc01 -r ab3a6813575a lisp/gnus-msg.el --- a/lisp/gnus-msg.el Tue Feb 20 19:17:30 1996 +0000 +++ b/lisp/gnus-msg.el Tue Feb 20 19:21:45 1996 +0000 @@ -1136,17 +1136,19 @@ ;; Insert new Sender if the From is strange. (let ((from (mail-fetch-field "from")) (sender (mail-fetch-field "sender"))) - (if (and from + (if (and from (not (string= - (downcase (car (gnus-extract-address-components from))) + (downcase + (car (cdr (gnus-extract-address-components from)))) (downcase (gnus-inews-real-user-address)))) (or (null sender) - (not + (not (string= - (downcase (car (gnus-extract-address-components sender))) + (downcase + (car (cdr (gnus-extract-address-components sender)))) (downcase (gnus-inews-real-user-address)))))) (progn - (goto-char (point-min)) + (goto-char (point-min)) (and (re-search-forward "^Sender:" nil t) (progn (beginning-of-line)