From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87370 Path: news.gmane.org!.POSTED!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: message-make-fqdn generating strange Message-ID Date: Fri, 17 Feb 2017 12:03:33 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87a89l9j0a.fsf@tullinup.koldfront.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1487329449 25258 195.159.176.226 (17 Feb 2017 11:04:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2017 11:04:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M35591@lists.math.uh.edu Fri Feb 17 12:04:05 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cegKX-0005s7-5P for ding-account@gmane.org; Fri, 17 Feb 2017 12:04:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cegKK-0006ME-Qw; Fri, 17 Feb 2017 05:03:48 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cegKI-0006LW-U1 for ding@lists.math.uh.edu; Fri, 17 Feb 2017 05:03:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cegKH-0006Ab-PH for ding@lists.math.uh.edu; Fri, 17 Feb 2017 05:03:46 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cegKG-00031h-Bk for ding@gnus.org; Fri, 17 Feb 2017 12:03:44 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cegK8-0003y9-0r for ding@gnus.org; Fri, 17 Feb 2017 12:03:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@blaine.gmane.org OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87370 Archived-At: Just having switched to Gnus from GNU Emacs master, Gnus complained: The Message-ID looks strange: "<87lgt59kxb.fsf@tullinup>". Really post? (y or n) This because gethostname() on my machine returns "tullinup" and previously message-make-fqdn caught this by matching against message-valid-fqdn-regexp, which was removed in 762986c9d36: - ((and (string-match message-valid-fqdn-regexp sysname) - (not (string-match message-bogus-system-names sysname))) + ((and (string-match message-bogus-system-names sysname)) (larsi fixed the "((and" to "((not" later). Should message-make-fqdn grow a simpler check ("Is there a '.' in the sysname"), should the order of checks in it be shuffled around, or is my machine broken when gethostname()¹ returns just the hostname (hostname(1) returns the fqdn when given the -f option)? For now I have set message-user-fqdn. Best regards, Adam ¹: #include #include #include int main(void) { char hostname[1001]; int ret; ret=gethostname(hostname, 1000); printf("%d gethostname: %s\n", ret, hostname); exit(0); } prints: 0 gethostname: tullinup -- "Angels can fly because they take themselves lightly." Adam Sjøgren asjo@koldfront.dk