1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

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

error if the `From:' line has no valid email addresses.
This commit is contained in:
Richard M. Stallman 1997-08-12 05:49:26 +00:00
parent 7c96c058a6
commit 8148a3adf7

View File

@ -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.