From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#23432: 25.0.93; Email from Gnus now going out with Message-IDs @gmail.com Date: Tue, 03 May 2016 21:59:56 -0300 Message-ID: <871t5imycz.fsf@gmail.com> References: <87h9efsig5.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462323707 19835 80.91.229.3 (4 May 2016 01:01:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 May 2016 01:01:47 +0000 (UTC) Cc: 23432@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 04 03:01:33 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axlBy-0001wI-Dn for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2016 03:01:30 +0200 Original-Received: from localhost ([::1]:44744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axlBu-0006Sx-QC for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 21:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axlBm-0006F7-5t for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 21:01:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axlBa-0000cD-8z for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 21:01:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axlBZ-0000b6-3E for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 21:01:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axlBV-0004cr-LT for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 21:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 May 2016 01:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 23432-submit@debbugs.gnu.org id=B23432.146232360717704 (code B ref 23432); Wed, 04 May 2016 01:01:01 +0000 Original-Received: (at 23432) by debbugs.gnu.org; 4 May 2016 01:00:07 +0000 Original-Received: from localhost ([127.0.0.1]:36163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axlAc-0004bU-Ss for submit@debbugs.gnu.org; Tue, 03 May 2016 21:00:07 -0400 Original-Received: from mail-ig0-f175.google.com ([209.85.213.175]:36209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axlAb-0004Zd-51 for 23432@debbugs.gnu.org; Tue, 03 May 2016 21:00:05 -0400 Original-Received: by mail-ig0-f175.google.com with SMTP id u10so133356312igr.1 for <23432@debbugs.gnu.org>; Tue, 03 May 2016 18:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=679ZTjQzTfy6BLtf3U7Pcc7XAoXrGQLbPzdVmjToFqI=; b=HwqjyLO7h0LyDsoh15cGOv/eV+XWm1BePPTfMG+xE2qEVKq23QfaVo1fs4Y9jit0m6 qtncK5boKGpB1OxxlKq7+iQ4hxTEGh3j6S3H2mdp8BkFxD9KQkSDvSIh4n1/+0mzeBCh VPhhh7EC55c0MEyOt9KFV4nqnqt6hk9hJ3ZuhE3HLDPhfeDtnkWTPfM+Joi23BuEIWFA AyKIMi5sD+hEdZ4Oz034dCpIULYvgOV6TWyW6teuIiop5geiOKkt54h/ust7ZyqWiOOT l/G/srqGViki6o1vtn2EKkTqQi8TyAXbig5E36oG0dtnTsutYK0sTnOt1XJXsvI+bJg+ 13PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=679ZTjQzTfy6BLtf3U7Pcc7XAoXrGQLbPzdVmjToFqI=; b=Y2TMC0dF1dV2NHl5EYB3Y8BoOJZTYz3xuZcOQoJ2TwInB973fj4L0znrFv14pNKYaR jTy9OalFV2pOvUs1IBeUMv/N7qr+iUN9Bgm3IBtAEmmIbvxTvcfsQTSbPz4MlHETwxqy UKkx5XZQOVmBQNxwurRMUtVCjZ7LTrczefe+XZqwTA+k57tS1ZGyTXdVLtMPDIpwe7LE Jspl31joAFTjX6yl+buYtnauITF3q9LakRmcih8Yx2G3HxQHc9gh71CkL+FzmKx4lliJ hW425Ilb9JTTsyZN0P/dUZ1BnL9Z1zmcnKHDtnv0ub3Ss5+Sx8hf5pzlXWJP4GsX0D+i jTtg== X-Gm-Message-State: AOPr4FUgBUpjFYCuinRj5X/LvxC+rgXg0yqA5GLqIo82bFD7TaY/mMS42MH1tOZyFgfapg== X-Received: by 10.50.18.166 with SMTP id x6mr30642830igd.12.1462323599572; Tue, 03 May 2016 17:59:59 -0700 (PDT) Original-Received: from moondust.nodomain.none (blk-222-90-80.eastlink.ca. [24.222.90.80]) by smtp.gmail.com with ESMTPSA id jv1sm714077igb.8.2016.05.03.17.59.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 May 2016 17:59:58 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Tue, 03 May 2016 16:13:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117706 Archived-At: At 16:13 -0400 on Tuesday 2016-05-03, Glenn Morris wrote: > > Please try edebugging message-make-fqdn to see what is going on. Thanks Glenn. * The problem is `system-name' So it turns out that the change in behaviour is coming from a lower level, from the function `system-name' * Message-ID is being set as documented Emacs is working as documented in (info "(message) News Headers"): =E2=80=98Message-ID=E2=80=99 This required header will be generated by Message. A unique ID will be created based on the date, time, user name (for the local part) and the domain part. For the domain part, message will look (in this order) at =E2=80=98message-user-fqdn=E2=80=99, =E2=80=98s= ystem-name=E2=80=99, =E2=80=98mail-host-address=E2=80=99 and =E2=80=98message-user-mail= -address=E2=80=99 (i.e., =E2=80=98user-mail-address=E2=80=99) until a probably valid fully = qualified domain name (FQDN) was found. The first thing that looked at for a domain name is `message-user-fqdn' which is nil on my system. Then `system-name' is looked at. On Emacs 24.5 `system-name' returns "moondust.localdomain". This satisfies the search, and the Message-ID is reported as xyz@moondust.localdomain (for some value xyz). This is what I have grown to expect. On Emacs 25.0.93 `system-name' returns "moondust". This does not satisfy the search and so `mail-host-address' is looked at, but it is nil. Finally, `message-user-mail-address' is tried. When Gnus has started, this evaluates to my default email address "nljlistbox2@gmail.com", and so the Message-ID becomes xyz@gmail.com. * Undesirable behaviour This is undesirable, and is especially embarrassing when I send mail from a non-gmail email address through a non-gmail SMTP server -- it still shows a Message-ID xyz@gmail.com! * Potential workaround Naturally, I can work around the change in behaviour by setting `message-user-fqdn', or possibly (?) by changing my system's host name, or possibly by setting `mail-host-address'. * If there is to be no fix, is a NEWS item warranted? However, if the new behaviour is not going to be "fixed", then I think the change should be reported in NEWS. After all, this is rather embarrassing and it is not immediately obvious that there's a problem -- my emails have been going out like that since the end of January and I only noticed today. * Is it a bug? What is not clear to me, is if the new behaviour of `system-name' is a bug or if it fixes a bug in Emacs 24. After all, IIUC my actual hostname is moondust, not moondust.localhost. In any case, I expect the change of behaviour is related to this entry in NEWS: ** Function 'system-name' now returns an updated value if the current system's name has changed or if the Emacs process has changed systems, and to avoid long waits it no longer consults DNS to canonicalize the name. The variable 'system-name' is now obsolete. * A far worse problem There is a much much worse consequence, though. If I don't start Gnus, and send an email directly with message, then `message-user-mail-address' is nil and `message-make-fqdn' falls through to its default value for the domain name, and the Message-ID becomes (IIUC) xyz@i-did-not-set--mail-host-address--so-tickle-me which is far more embarrassing and unacceptable than xyz@gmail.com! I see this string emerge for example, if I run report-emacs-bug before starting Gnus. Emacs 24 was immune to this problem. N.