Mercurial > emacs
changeset 19315:f842aabf9735
(rmail-make-in-reply-to-field): Don't cause an
error if the `From:' line has no valid email addresses.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 12 Aug 1997 05:49:26 +0000 |
parents | 860783b225b9 |
children | d28bff25d9a6 |
files | lisp/mail/rmail.el |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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.