Commit 8148a3ad authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-make-in-reply-to-field): Don't cause an

error if the `From:' line has no valid email addresses.
parent 7c96c058
......@@ -2527,12 +2527,14 @@ which is an element of rmail-msgref-vector."
(require 'rfc822)
(let ((tem (car (rfc822-addresses from))))
(if message-id
(if (string-match
(regexp-quote (if (string-match "@[^@]*\\'" tem)
(substring tem 0 (match-beginning 0))
tem))
message-id)
;; Message-ID is sufficiently informative
(if (or (not tem)
(string-match
(regexp-quote (if (string-match "@[^@]*\\'" tem)
(substring tem 0
(match-beginning 0))
tem))
message-id))
;; missing From, or Message-ID is sufficiently informative
message-id
(concat message-id " (" tem ")"))
;; Copy TEM, discarding text properties.
......
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