From: Lars Magne Ingebrigtsen Date: Sat, 1 Mar 2003 14:26:34 +0000 (+0000) Subject: (message-make-fqdn): Protect against nil user-mail. X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=e1689f2dc966658454089373a08be43369e1fd58;p=gnus (message-make-fqdn): Protect against nil user-mail. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fd74acaf5..eb8684258 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2003-03-01 Lars Magne Ingebrigtsen + + * message.el (message-make-fqdn): Protect against nil user-mail. + 2003-02-28 Vasily Korytov * gnus-art.el (gnus-boring-article-headers): New values: diff --git a/lisp/message.el b/lisp/message.el index 9782827d4..a9faf5ec8 100644 --- a/lisp/message.el +++ b/lisp/message.el @@ -4530,7 +4530,8 @@ give as trustworthy answer as possible." (let* ((system-name (system-name)) (user-mail (message-user-mail-address)) (user-domain - (if (string-match "@\\(.*\\)\\'" user-mail) + (if (and user-mail + (string-match "@\\(.*\\)\\'" user-mail)) (match-string 1 user-mail)))) (cond ((and message-user-fqdn