Article View: gnu.emacs.bug
Article #87625Re: [19.26]: user-mail-address not documented
From: Kjetil Torgrim Homme
Date: Mon, 12 Sep 1994 18:30
Date: Mon, 12 Sep 1994 18:30
29 lines
1908 bytes
1908 bytes
+--- Per Cederqvist:
| Emacs fails to guess my email address correctly, and I think it will
| fail for many persons. I can't think of a better way to
| automatically find the email address, though. (On all the machines
| I currently have an account on, emacs guesses something like
| "ceder@sparky.signum.se", but the correct address is
| "ceder@signum.se"; dropping the first part of (system-name) should
| produce valid email addresses for me, but would probably break
| things for many others).
One alternate algorithm is:
find MX-record for host A
do {
chop off leftmost component
} while MX is the same
I know that this will guess wrong in a number of cases. One example is
foobar@gazonk.oslo.sgi.com which will become foobar@sgi.com rather
than the correct foobar@oslo.sgi.com. Perhaps the algorithm should
restrict itself to chop off just one level, then this class of
addresses will work, too. In any case, I think this method will be
correct in more situations.
(I don't know how to do DNS queries in elisp, perhaps the
functionality isn't there, making this moot.)
Kjetil T.
Technical Details
Message-ID:
<KJETILHO.94Sep12195210@kalliope.uio.no>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!math.uio.NO!kjetilhoReferences:
<199409102137.XAA15815@sparky.signum.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,585168559e021aa4 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-12 23:28:54 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!math.uio.NO!kjetilho From: kjetilho@math.uio.NO (Kjetil Torgrim Homme) Newsgroups: gnu.emacs.bug Subject: Re: [19.26]: user-mail-address not documented Date: 12 Sep 1994 14:30:55 -0400 Organization: University of Oslo, department of mathematics Lines: 29 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <KJETILHO.94Sep12195210@kalliope.uio.no> References: <199409102137.XAA15815@sparky.signum.se>