Gnus development mailing list
 help / color / mirror / Atom feed
From: "Rene H. Larsen" <rhl@traceroute.dk>
Subject: Re: message.el: mail-host-address ignored
Date: 11 Nov 1999 02:31:59 +0100	[thread overview]
Message-ID: <87n1slizjk.fsf@worldonline.dk> (raw)
In-Reply-To: Raymond Scholz's message of "10 Nov 1999 19:24:40 +0100"

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

Raymond Scholz <rscholz@tzi.de> writes:

> | `Message-ID'
> |     This required header will be generated by Message.  A unique
> |     ID will be created based on the date, time, user name and
> |     system name.  Message will use `mail-host-address' as the
> |     fully qualified domain name (FQDN) of the machine if that
> |     variable is defined.  If not, it will use `system-name', which
> |     doesn't report a FQDN on some machines - notably Suns.
> 
> But Message still uses `system-name' for Message-ID generation. My
> tiny knowledge of Lisp tells me, that Message takes `system-name',
> looks for a `.' in it and calls it fully qualified after that. If
> there is no `.' in it, it uses other alternatives (including
> `mail-host-address') to build a unique Message-ID.

This came up on the list about 2 months ago, but nothing was done
about it.  This patch against current CVS will fix the message-id
generation to match the documentation:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix for message-id generation --]
[-- Type: text/x-patch, Size: 755 bytes --]

--- message.el.orig	Sat Nov  6 04:15:15 1999
+++ message.el	Thu Nov 11 02:25:28 1999
@@ -2939,14 +2939,15 @@
   (let ((system-name (system-name))
 	(user-mail (message-user-mail-address)))
     (cond
-     ((string-match "[^.]\\.[^.]" system-name)
-      ;; `system-name' returned the right result.
-      system-name)
      ;; Try `mail-host-address'.
      ((and (boundp 'mail-host-address)
 	   (stringp mail-host-address)
 	   (string-match "\\." mail-host-address))
       mail-host-address)
+     ;; Else try `system-name'
+     ((string-match "[^.]\\.[^.]" system-name)
+      ;; `system-name' returned the right result.
+      system-name)
      ;; We try `user-mail-address' as a backup.
      ((and user-mail
 	   (string-match "\\." user-mail)

[-- Attachment #3: Type: text/plain, Size: 166 bytes --]

-- 
Echelon bait:
AK-47 Janet Reno DES class struggle jihad NSA CIA Treasury
counter-intelligence David John Oates North Korea domestic disruption
Ortega Serbian PLO

  reply	other threads:[~1999-11-11  1:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-10 18:24 Raymond Scholz
1999-11-11  1:31 ` Rene H. Larsen [this message]
1999-11-11 12:41   ` Toby Speight
1999-11-11 18:45     ` Rene H. Larsen
1999-11-11 20:39     ` Raymond Scholz
1999-11-11 21:00       ` Toby Speight
1999-11-11 16:38   ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n1slizjk.fsf@worldonline.dk \
    --to=rhl@traceroute.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).