changeset 14604:ab3a6813575a

(gnus-inews-insert-headers): Check whether Sender and From are equal before inserting a Sender header.
author Karl Heuer <kwzh@gnu.org>
date Tue, 20 Feb 1996 19:21:45 +0000
parents b9daaf52fc01
children 80196bfd8b94
files lisp/gnus-msg.el
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)