aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2017-02-15 20:23:07 -0500
committerGlenn Morris2017-02-15 20:23:07 -0500
commit8ed8ef307d9a28f6c3336a448c7fbdfe8a733d83 (patch)
treec0fd8a241de4668ca1a52ec91c72263bbe46c965
parentadfb6f1dc26a927cf4bab24bdfae54b51e3ae0ec (diff)
downloademacs-8ed8ef307d9a28f6c3336a448c7fbdfe8a733d83.tar.gz
emacs-8ed8ef307d9a28f6c3336a448c7fbdfe8a733d83.zip
Handle user-mail-address being the empty string
* lisp/mail/feedmail.el (feedmail-fiddle-from): * lisp/mail/rmail.el (rmail-unknown-mail-followup-to): * lisp/mail/rmailsum.el (rmail-header-summary): Belated update for 2002-09-29 startup.el change, 680ebfa, where the value of user-mail-address during initialization was changed from nil to the empty string.
-rw-r--r--lisp/mail/feedmail.el3
-rw-r--r--lisp/mail/rmail.el9
-rw-r--r--lisp/mail/rmailsum.el9
3 files changed, 12 insertions, 9 deletions
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
index 1402db40951..53791565bb1 100644
--- a/lisp/mail/feedmail.el
+++ b/lisp/mail/feedmail.el
@@ -2768,7 +2768,8 @@ return that value."
2768 ((eq t feedmail-from-line) 2768 ((eq t feedmail-from-line)
2769 (let ((feedmail-from-line 2769 (let ((feedmail-from-line
2770 (let ((at-stuff 2770 (let ((at-stuff
2771 (if user-mail-address user-mail-address 2771 (if (> (length user-mail-address) 0)
2772 user-mail-address
2772 (concat (user-login-name) "@" 2773 (concat (user-login-name) "@"
2773 (or mail-host-address (system-name)))))) 2774 (or mail-host-address (system-name))))))
2774 (cond 2775 (cond
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index aeaba5862fc..695638fa062 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2666,10 +2666,11 @@ Ask the user whether to add that list name to `mail-mailing-lists'."
2666 (regexp-quote (user-login-name)) 2666 (regexp-quote (user-login-name))
2667 "\\($\\|@\\)\\|" 2667 "\\($\\|@\\)\\|"
2668 (regexp-quote 2668 (regexp-quote
2669 (or user-mail-address 2669 (if (> (length user-mail-address) 0)
2670 (concat (user-login-name) "@" 2670 user-mail-address
2671 (or mail-host-address 2671 (concat (user-login-name) "@"
2672 (system-name))))) 2672 (or mail-host-address
2673 (system-name)))))
2673 "\\>\\)")) 2674 "\\>\\)"))
2674 addr)) 2675 addr))
2675 (y-or-n-p 2676 (y-or-n-p
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 7c7c9f48e70..729538173a0 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -757,10 +757,11 @@ the message being processed."
757 ;; Don't lose if run from init file 757 ;; Don't lose if run from init file
758 ;; where user-mail-address is not 758 ;; where user-mail-address is not
759 ;; set yet. 759 ;; set yet.
760 (or user-mail-address 760 (if (> (length user-mail-address) 0)
761 (concat (user-login-name) "@" 761 user-mail-address
762 (or mail-host-address 762 (concat (user-login-name) "@"
763 (system-name))))) 763 (or mail-host-address
764 (system-name)))))
764 "\\>\\)")) 765 "\\>\\)"))
765 from)) 766 from))
766 ;; No From field, or it's this user. 767 ;; No From field, or it's this user.