1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +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) (require 'rfc822)
(let ((tem (car (rfc822-addresses from)))) (let ((tem (car (rfc822-addresses from))))
(if message-id (if message-id
(if (string-match (if (or (not tem)
(regexp-quote (if (string-match "@[^@]*\\'" tem) (string-match
(substring tem 0 (match-beginning 0)) (regexp-quote (if (string-match "@[^@]*\\'" tem)
tem)) (substring tem 0
message-id) (match-beginning 0))
;; Message-ID is sufficiently informative tem))
message-id))
;; missing From, or Message-ID is sufficiently informative
message-id message-id
(concat message-id " (" tem ")")) (concat message-id " (" tem ")"))
;; Copy TEM, discarding text properties. ;; Copy TEM, discarding text properties.