# HG changeset patch # User Richard M. Stallman # Date 871364966 0 # Node ID f842aabf9735b0d7806b027c0ed60a79ef06f342 # Parent 860783b225b9b804ba1b0f8c357ae45d3f64b703 (rmail-make-in-reply-to-field): Don't cause an error if the `From:' line has no valid email addresses. diff -r 860783b225b9 -r f842aabf9735 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Tue Aug 12 05:47:05 1997 +0000 +++ b/lisp/mail/rmail.el Tue Aug 12 05:49:26 1997 +0000 @@ -2527,12 +2527,14 @@ (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.