--- gnus-art.el 7 Oct 2004 13:54:59 -0000 7.56 +++ gnus-art.el 17 Oct 2004 17:40:22 -0000 @@ -564,6 +564,15 @@ :type 'hook :group 'gnus-article-various) +(defcustom gnus-copy-article-ignored-headers '("Xref") + "List of headers to be removed when copying an article. +Each element is a regular expression." + :version "22.0" ;; No Gnus + :type '(choice :custom-show nil + regexp + (repeat regexp)) + :group 'gnus-article-various) + (make-obsolete-variable 'gnus-article-hide-pgp-hook "This variable is obsolete in Gnus 5.10.") --- gnus-sum.el 12 Oct 2004 02:26:52 -0000 7.61 +++ gnus-sum.el 17 Oct 2004 17:40:23 -0000 @@ -9018,6 +9018,10 @@ (save-excursion (set-buffer copy-buf) (when (gnus-request-article-this-buffer article gnus-newsgroup-name) + (save-restriction + (nnheader-narrow-to-headers) + (dolist (hdr gnus-copy-article-ignored-headers) + (message-remove-header hdr t))) (gnus-request-accept-article to-newsgroup select-method (not articles) t)))) ;; Crosspost the article.