summaryrefslogtreecommitdiff
path: root/lisp/gnus/message.el
diff options
context:
space:
mode:
authorKatsumi Yamaoka <yamaoka@jpl.org>2018-05-30 23:30:11 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2018-05-30 23:30:11 +0000
commitdf8649ac40be54cc3007241c4c1d5b1cb81c54dd (patch)
tree53d17f64229d0882c7b9e4a50c90ade53e788f02 /lisp/gnus/message.el
parentb682a7e5bc644d88ca4e08a9b69e82ac799527c5 (diff)
downloademacs-df8649ac40be54cc3007241c4c1d5b1cb81c54dd.tar.gz
* lisp/gnus/message.el (message-remove-header): Don't remove things
not looking like header (bug#31651).
Diffstat (limited to 'lisp/gnus/message.el')
-rw-r--r--lisp/gnus/message.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 0eebbe299d2..461f61f144d 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -2431,7 +2431,9 @@ Return the number of headers removed."
(while (and (not (eobp))
(not last))
(if (if reverse
- (not (looking-at regexp))
+ (and (not (looking-at regexp))
+ ;; Don't remove things not looking like header.
+ (looking-at "[!-9;-~]+:"))
(looking-at regexp))
(progn
(incf number)