2003-04-15 Michael Shields <shields@msrl.com>
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 16 Apr 2003 21:57:46 +0000 (21:57 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 16 Apr 2003 21:57:46 +0000 (21:57 +0000)
* gnus-art.el (article-hide-boring-headers): Hide Reply-To: if
the broken-reply-to group parameter is set.  Idea from Vasily
Korytov <deskpot@myrealbox.com>.

lisp/ChangeLog
lisp/gnus-art.el

index 54458f9..cc2bd62 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-15  Michael Shields  <shields@msrl.com>
+
+       * gnus-art.el (article-hide-boring-headers): Hide Reply-To: if
+       the broken-reply-to group parameter is set.  Idea from Vasily
+       Korytov <deskpot@myrealbox.com>.
+
 2003-04-17  Steve Youngs  <youngs@xemacs.org>
 
        * dgnushack.el: Add a whole swag of autoloads and defaliases to
index 918cdc2..0d5f009 100644 (file)
@@ -1667,15 +1667,18 @@ always hide."
                     (message-fetch-field "newsgroups"))
                (gnus-article-hide-header "followup-to")))
             ((eq elem 'reply-to)
-             (let ((from (message-fetch-field "from"))
-                   (reply-to (message-fetch-field "reply-to")))
-               (when (and
-                      from reply-to
-                      (ignore-errors
-                        (gnus-string-equal
-                         (nth 1 (mail-extract-address-components from))
-                         (nth 1 (mail-extract-address-components reply-to)))))
-                 (gnus-article-hide-header "reply-to"))))
+             (if (gnus-group-find-parameter
+                  gnus-newsgroup-name 'broken-reply-to)
+                 (gnus-article-hide-header "reply-to")
+               (let ((from (message-fetch-field "from"))
+                     (reply-to (message-fetch-field "reply-to")))
+                 (when (and
+                        from reply-to
+                        (ignore-errors
+                          (gnus-string-equal
+                           (nth 1 (mail-extract-address-components from))
+                           (nth 1 (mail-extract-address-components reply-to)))))
+                   (gnus-article-hide-header "reply-to")))))
             ((eq elem 'date)
              (let ((date (message-fetch-field "date")))
                (when (and date