2001-02-17 13:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 17 Feb 2001 18:40:55 +0000 (18:40 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 17 Feb 2001 18:40:55 +0000 (18:40 +0000)
* gnus-msg.el (gnus-configure-posting-styles): Match header in
gnus-article-copy.

lisp/ChangeLog
lisp/gnus-msg.el

index 4b4ec69..54b70d8 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-17 13:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-msg.el (gnus-configure-posting-styles): Match header in
+       gnus-article-copy.
+
 2001-02-16 22:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * message.el (message-do-send-housekeeping): Rename to a better
index fc3bc6e..1a30067 100644 (file)
@@ -1280,9 +1280,11 @@ this is a reply."
                ;; Regexp string match on the group name.
                (string-match match group))
               ((eq match 'header)
-               (let ((header (message-fetch-field (pop style))))
-                 (and header
-                      (string-match (pop style) header))))
+               (and (gnus-buffer-live-p gnus-article-copy)
+                    (with-current-buffer gnus-article-copy
+                      (let ((header (message-fetch-field (pop style))))
+                        (and header
+                             (string-match (pop style) header))))))
               ((or (symbolp match)
                    (gnus-functionp match))
                (cond