Article View: gnu.emacs.bug
Article #87609user-mail-address: customize hostname part per site
From: Stephen Gildea
Date: Mon, 12 Sep 1994 20:11
Date: Mon, 12 Sep 1994 20:11
44 lines
2267 bytes
2267 bytes
The new variable user-mail-address in Emacs 19.26 is a good idea, but
the initialization of it in normal-top-level could be more flexible.
I'd like to see the concept of a mail host, which might be customized
in site-init.el. For example, no matter what machine someone here is
using, we want our mail address to appear as, say, "gildea@x.org",
not, say, "gildea@foo.x.org".
A sample implementation:
*** lisp/startup.el-19.26 Tue Aug 9 23:33:45 1994
--- lisp/startup.el Fri Sep 9 16:42:45 1994
***************
*** 149,154 ****
--- 149,158 ----
We do that if this regexp matches the locale name
specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
+ (defvar mail-host-name nil
+ "Host name part of the mailing address of this user.
+ Defaults to (system-name).")
+
(defvar user-mail-address nil
"Full mailing address of this user.")
***************
*** 176,182 ****
(delete (concat "PWD=" pwd)
process-environment)))))))
(setq default-directory (abbreviate-file-name default-directory))
! (setq user-mail-address (concat (user-login-name) "@" (system-name)))
(let ((menubar-bindings-done nil))
(unwind-protect
(command-line)
--- 180,188 ----
(delete (concat "PWD=" pwd)
process-environment)))))))
(setq default-directory (abbreviate-file-name default-directory))
! (setq user-mail-address (concat (user-login-name) "@"
! (or mail-host-name
! (system-name)))))
(let ((menubar-bindings-done nil))
(unwind-protect
(command-line)
Technical Details
Message-ID:
<9409122009.AA21685@alex.x.org>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!x.org!gildeaShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,42418cbada6f5fd0,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-12 13:52:44 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!x.org!gildea From: gildea@x.org (Stephen Gildea) Newsgroups: gnu.emacs.bug Subject: user-mail-address: customize hostname part per site Date: 12 Sep 1994 16:11:25 -0400 Organization: X Consortium, Cambridge, Massachusetts Lines: 44 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9409122009.AA21685@alex.x.org>