From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: init_system_name fqdn? Date: Sat, 17 Jun 2017 11:29:22 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497713410 14649 195.159.176.226 (17 Jun 2017 15:30:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 15:30:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 17 17:30:05 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMFfo-0003XA-4d for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 17:30:04 +0200 Original-Received: from localhost ([::1]:35436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMFft-0007sL-GZ for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 11:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMFfM-0007s9-8r for emacs-devel@gnu.org; Sat, 17 Jun 2017 11:29:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMFfI-0007Zh-7K for emacs-devel@gnu.org; Sat, 17 Jun 2017 11:29:36 -0400 Original-Received: from [195.159.176.226] (port=58492 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMFfI-0007Xn-0q for emacs-devel@gnu.org; Sat, 17 Jun 2017 11:29:32 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dMFf8-0001aA-Tt for emacs-devel@gnu.org; Sat, 17 Jun 2017 17:29:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:c9cKb1jRf3G42onYNacjaHOFwoU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215700 Archived-At: > A while back, init_system_name tried to find the system's fully > qualified domain name. Then this code was taken out, and now it just > uses whatever gethostname returns. I think this is a poor choice. It depends on what it's used for. What is your use for it where it's a poor choice? > Many systems are configured without a fully qualified hostname. > Then when you send mail you get > "i-did-not-set--mail-host-address--so-tickle-me" in your from address. Indeed, gethostname doesn't return a good choice for mail-host-address. But of all the machines I have had access to in the last 10 years, not a single one had an FQDN that was a good choice for mail-host-address either. So the only "advantage" of the old code was that it was more complex and could delay startup by 2min in some cases. > Of course this is easily fixed by setting mail-host-address, > e.g., in site-start.el, but then when you go to report a bug and say > "emacs -Q" ... "M-x report-emacs-bug" you are back to "so tickle me". How do you suggest Emacs discovers that it should use "iro.umontreal.ca" (hint: no machine has such an FQDN)? [ Actually, even that is dicey: nowadays "username @ mail-host-address" is likely to be generally wrong. Instead, every user has her own choice of mail service, so user `foo` would want to use `foo63@gnu.org`, user `bar` will want to use `chocolate.bar@gmial.com`. ] Stefan