From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35043 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: `user-mail-address' for message-ids Date: 27 Feb 2001 23:01:32 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <20010223133030.B14991@mastaler.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035170851 898 80.91.224.250 (21 Oct 2002 03:27:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:27:31 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id E81C7D049D for ; Tue, 27 Feb 2001 17:02:19 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB21127; Tue, 27 Feb 2001 16:01:54 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 27 Feb 2001 16:01:14 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA15599 for ; Tue, 27 Feb 2001 16:01:03 -0600 (CST) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id 5EFB0D049D for ; Tue, 27 Feb 2001 17:01:34 -0500 (EST) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id XAA10762 for ; Tue, 27 Feb 2001 23:01:33 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id XAA01436; Tue, 27 Feb 2001 23:01:33 +0100 (MET) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id XAA28610; Tue, 27 Feb 2001 23:01:33 +0100 X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>! $n%@SHJ](KFJKL,uF\=G=bRJQC$ ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>} (Simon Josefsson's message of "27 Feb 2001 20:05:26 +0100") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.99 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 28 Xref: main.gmane.org gmane.emacs.gnus.general:35043 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35043 On 27 Feb 2001, Simon Josefsson wrote: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: >=20 >> I tend to agree with the former group, though I also think that >> Emacs could try harder to glean the name, for example from the name >> server. >=20 > I think this is what's happening -- it uses uname() or gethostname() > to get a name, and if that value doesn't conain `.' it proceeds with > a gethostbyname(). `init_system_name' in sysdep.c. By `trying harder' I mean that it should recognize `localhost.localdomain' as a very improbable FQDN and try to ask the name server, instead. It used to be that Emacs used the output of the `domainname' command (well, the appropriate equivalent library function or system call), but that was the NIS domain and not the DNS domain... My idea is that Emacs should look if there is /etc/resolv.conf and if there is a nameserver entry in it, and if so, it should ask the name server for the FQDN of the local host. (Unless the FQDN was found already in /etc/hosts.) kai --=20 Be indiscrete. Do it continuously.