]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-make-basic-summary-line):
authorKarl Heuer <kwzh@gnu.org>
Thu, 11 Jul 1996 23:59:24 +0000 (23:59 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 11 Jul 1996 23:59:24 +0000 (23:59 +0000)
If user-mail-address is nil, use alternative.

lisp/mail/rmailsum.el

index f2134f99934eb8225d56d41e213fa9ea4123363e..f9152447733cba143f7c486a325122906a287bdf 100644 (file)
@@ -365,7 +365,14 @@ nil for FUNCTION means all messages."
                (if (string-match (concat "^\\("
                                          (regexp-quote (user-login-name))
                                          "\\($\\|@\\)\\|"
-                                         (regexp-quote user-mail-address)
+                                         (regexp-quote
+                                          ;; Don't lose if run from init file
+                                          ;; where user-mail-address is not
+                                          ;; set yet.
+                                          (or user-mail-address
+                                              (concat (user-login-name) "@"
+                                                      (or mail-host-address
+                                                          (system-name)))))
                                          "\\>\\)")
                                  from)
                    (save-excursion