Synch to No Gnus 200405060141.
authoryamaoka <yamaoka>
Thu, 6 May 2004 06:40:40 +0000 (06:40 +0000)
committeryamaoka <yamaoka>
Thu, 6 May 2004 06:40:40 +0000 (06:40 +0000)
lisp/ChangeLog
lisp/gnus-art.el

index b54b27f..b8d51e4 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-06  TSUCHIYA Masatoshi  <tsuchiya@namazu.org>
+
+       * gnus-art.el (article-strip-banner): Use original from fields
+       instead of MIME-decoded from fields, when checking
+       `gnus-article-address-banner-alist'.
+
 2004-05-03  Jesper Harder  <harder@ifa.au.dk>
 
        * nnrss.el (nnrss-check-group, nnrss-read-group-data): Hash on
@@ -5,7 +11,7 @@
 
 2004-05-02  Steve Youngs  <steve@youngs.au.com>
 
-       * dgnushack.el: Autoload `mail-fetch-field' for XEmacs. 
+       * dgnushack.el: Autoload `mail-fetch-field' for XEmacs.
 
 2004-05-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
@@ -18,7 +24,7 @@
 2004-05-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-agent.el (gnus-agent-read-agentview): Inline
-       gnus-uncompress-range. 
+       gnus-uncompress-range.
 
 2004-05-01  TSUCHIYA Masatoshi  <tsuchiya@namazu.org>
 
index 99288aa..b3f65a2 100644 (file)
@@ -2624,18 +2624,14 @@ always hide."
          (article-really-strip-banner
           (gnus-parameter-banner gnus-newsgroup-name)))
        (when gnus-article-address-banner-alist
-         (article-really-strip-banner
-          (let ((from (save-restriction
-                        (widen)
-                        (article-narrow-to-head)
-                        (mail-fetch-field "from"))))
-            (when (and from
-                       (setq from
-                             (caar (mail-header-parse-addresses from))))
-              (catch 'found
-                (dolist (pair gnus-article-address-banner-alist)
-                  (when (string-match (car pair) from)
-                    (throw 'found (cdr pair)))))))))))))
+         (let ((from (caar (mail-header-parse-addresses
+                            (gnus-fetch-original-field "from")))))
+           (when from
+             (catch 'found
+               (dolist (pair gnus-article-address-banner-alist)
+                 (when (string-match (car pair) from)
+                   (throw 'found
+                          (article-really-strip-banner (cdr pair)))))))))))))
 
 (defun article-really-strip-banner (banner)
   "Strip the banner specified by the argument."