Variable: user-mail-address

user-mail-address is a customizable variable defined in startup.el.gz.

Value

"root@46c0020740a5"

Documentation

The email address of the current user.

This defaults to either: the value of EMAIL environment variable; or user@host, using user-login-name(var)/user-login-name(fun) and mail-host-address (or system-name(var)/system-name(fun)).

View in manual

Probably introduced at or before Emacs version 19.26.

Source Code

;; Defined in /usr/src/emacs/lisp/startup.el.gz
(defcustom user-mail-address
  (or (getenv "EMAIL")
      (concat (user-login-name) "@" (or mail-host-address (system-name))))
  "The email address of the current user.
This defaults to either: the value of EMAIL environment variable; or
user@host, using `user-login-name' and `mail-host-address' (or `system-name')."
  :initialize #'custom-initialize-delay
  :set-after '(mail-host-address)
  :type 'string
  :group 'mail)