Remove X-Message-SMTP-Method from news, too.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Dec 2012 20:13:47 +0000 (21:13 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Dec 2012 20:13:47 +0000 (21:13 +0100)
* message.el (message-ignored-news-headers): Always remove
X-Message-SMTP-Method to avoid information leakage if the user
mistakenly inserts the header into news messages.

lisp/ChangeLog
lisp/message.el

index cf50eb5..2eb6023 100644 (file)
@@ -1,5 +1,9 @@
 2012-12-24  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * message.el (message-ignored-news-headers): Always remove
+       X-Message-SMTP-Method to avoid information leakage if the user
+       mistakenly inserts the header into news messages.
+
        * gnus-srvr.el (gnus-browse-delete-group): New command and keystroke.
 
        * gnus-sum.el (gnus-summary-hide-thread): If point were further to the
index 9cd0a4d..c815485 100644 (file)
@@ -268,7 +268,7 @@ This is a list of regexps and regexp matches."
   :type 'sexp)
 
 (defcustom message-ignored-news-headers
-  "^NNTP-Posting-Host:\\|^Xref:\\|^[BGF]cc:\\|^Resent-Fcc:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:"
+  "^NNTP-Posting-Host:\\|^Xref:\\|^[BGF]cc:\\|^Resent-Fcc:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:\\|^X-Message-SMTP-Method:"
   "*Regexp of headers to be removed unconditionally before posting."
   :group 'message-news
   :group 'message-headers