GNU bug report logs - #25702
26.0.50; `message-make-fqdn' break when `(system-name)' doesn't ends in `.local'

Previous Next

Package: emacs;

Reported by: Rasmus <rasmus <at> gmx.us>

Date: Mon, 13 Feb 2017 10:51:01 UTC

Severity: normal

Found in version 26.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25702 in the body.
You can then email your comments to 25702 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25702; Package emacs. (Mon, 13 Feb 2017 10:51:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Rasmus <rasmus <at> gmx.us>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 13 Feb 2017 10:51:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Rasmus <rasmus <at> gmx.us>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50;
 `message-make-fqdn' break when `(system-name)' doesn't ends in
 `.local'
Date: Mon, 13 Feb 2017 11:49:59 +0100
Hi,

The combination of 3485c1693ef (see #24570) and maybe the removal of
`message-valid-fqdn-regexp' means that `message-make-fqdn' has broken for
me.

My (system-name) is the model number of the machine I use (e.g. "X200s").
So now it's selected as the fdqn via `message-make-fqdn':

    ((not (string-match message-bogus-system-names sysname))
          ;; `system-name' returned the right result.
          sysname)

Thus, MESSAGE-ID are something <at> X200s, which is a bogus address.

For now I can add laptops model number to `message-bogus-system-names' but
that seems wrong.  Shouldn't user-domain be preferred over the sysname
anyway?

Thanks,
Rasmus




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25702; Package emacs. (Mon, 13 May 2019 21:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 25702 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Rasmus <rasmus <at> gmx.us>
Cc: 25702 <at> debbugs.gnu.org
Subject: Re: bug#25702: 26.0.50;
 `message-make-fqdn' break when `(system-name)' doesn't ends in
 `.local'
Date: Mon, 13 May 2019 17:14:21 -0400
Rasmus <rasmus <at> gmx.us> writes:

> The combination of 3485c1693ef (see #24570) and maybe the removal of
> `message-valid-fqdn-regexp' means that `message-make-fqdn' has broken for
> me.
>
> My (system-name) is the model number of the machine I use (e.g. "X200s").
> So now it's selected as the fdqn via `message-make-fqdn':
>
>     ((not (string-match message-bogus-system-names sysname))
>           ;; `system-name' returned the right result.
>           sysname)
>
> Thus, MESSAGE-ID are something <at> X200s, which is a bogus address.

I think this has been fixed in Emacs in 2017.  The code is now:

     ;; A system name without any dots is unlikely to be a good fully
     ;; qualified domain name.
     ((and (string-match "[.]" sysname)
	   (not (string-match message-bogus-system-names sysname)))
      ;; `system-name' returned the right result.
      sysname)

So it won't use sysname if there's no dot.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 25702 <at> debbugs.gnu.org and Rasmus <rasmus <at> gmx.us> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 13 May 2019 21:15:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Jun 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.