Commit bdbeb193 authored by Gerd Moellmann's avatar Gerd Moellmann

(rmail-clear-headers): Don't throw an error

if rmail-ignored-headers is nil.
(rmail-retry-failure): Bind rmail-ignored-headers and
rmail-displayed-headers to nil.
parent 2f72fd2f
......@@ -1834,9 +1834,10 @@ Otherwise, delete all header fields whose names match `rmail-ignored-headers'."
(or ignored-headers (setq ignored-headers rmail-ignored-headers))
(narrow-to-region (point-min) (point))
(while (progn
(goto-char (point-min))
(re-search-forward ignored-headers nil t))
(while (and ignored-headers
(goto-char (point-min))
(re-search-forward ignored-headers nil t)))
(delete-region (point)
(if (re-search-forward "\n[^ \t]" nil t)
......@@ -3193,7 +3194,9 @@ specifying headers which should not be copied into the new message."
;; Insert original text as initial text of new draft message.
;; Bind inhibit-read-only since the header delimiter
;; of the previous message was probably read-only.
(let ((inhibit-read-only t))
(let ((inhibit-read-only t)
(insert-buffer-substring rmail-this-buffer bounce-start bounce-end)
(goto-char (point-min))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment