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 13:29:43 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497720603 15403 195.159.176.226 (17 Jun 2017 17:30:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 17:30:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ken Olum Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 17 19:29:52 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 1dMHXk-0003Kw-Cm for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 19:29:52 +0200 Original-Received: from localhost ([::1]:35809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMHXm-0006ER-Lk for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 13:29:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMHXg-0006EL-Py for emacs-devel@gnu.org; Sat, 17 Jun 2017 13:29:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMHXd-000385-Lt for emacs-devel@gnu.org; Sat, 17 Jun 2017 13:29:48 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10874) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMHXd-00037d-Eq for emacs-devel@gnu.org; Sat, 17 Jun 2017 13:29:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DxGwBRZkVZ/2/y92hcDhAGDINYimaGAJEGKwGQeoZihh4EAgKCaUQUAQIBAQEBAQEBayhCDAGESgEEAVYjBQsLDiYSFBgNJIo3CK4ui18BAQgCJohDgyKEOhECAQWGCQWQQYZbh0KeaYcDSJRBNiF/CzAhCDCHGVskgVWIKgEBAQ X-IPAS-Result: A0DxGwBRZkVZ/2/y92hcDhAGDINYimaGAJEGKwGQeoZihh4EAgKCaUQUAQIBAQEBAQEBayhCDAGESgEEAVYjBQsLDiYSFBgNJIo3CK4ui18BAQgCJohDgyKEOhECAQWGCQWQQYZbh0KeaYcDSJRBNiF/CzAhCDCHGVskgVWIKgEBAQ X-IronPort-AV: E=Sophos;i="5.39,353,1493697600"; d="scan'208";a="317709128" Original-Received: from 104-247-242-111.cpe.teksavvy.com (HELO pastel.home) ([104.247.242.111]) by smtp.teksavvy.com with ESMTP; 17 Jun 2017 13:29:43 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 36FA061626; Sat, 17 Jun 2017 13:29:43 -0400 (EDT) In-Reply-To: (Ken Olum's message of "Sat, 17 Jun 2017 13:10:37 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:215705 Archived-At: > The hostname of the machine I'm using is "cosmos", because that's what I > put in /etc/hostname. Its FQDN is cosmos.phy.tufts.edu, and that's > where my email address is. My understanding of the current state of email in the world is that such a situation is extremely rare nowadays (even though it was pretty standard 20 years ago, indeed). > I don't know what was causing this delay, Misconfigurations. > but certainly we don't want it. Can "hostname -f" cause > a similar delay? I think so, yes (IIRC this happened when /etc/nsswitch.conf would say to consult a DNS server, while the server mentioned in /etc/resolv.conf was currently unreachable). > Would you suggest not guessing at all and requiring the installer to set > mail-host-address or the user to set user-mail-address before mail can > be sent? Yes. I think nowadays, guessing the user-mail-address based on "username" and "system-name" is just hopeless. A better basis for the guess could be ~/.gitconfig. If we want "emacs -Q" to get a valid email without prompting you every time, then we need to store the email somewhere else than ~/.emacs. Stefan