Gnus development mailing list
 help / color / mirror / Atom feed
From: Toby Speight <Toby.Speight@streapadair.freeserve.co.uk>
Subject: Re: message.el: mail-host-address ignored
Date: 11 Nov 1999 12:41:00 +0000	[thread overview]
Message-ID: <u7ljpuroj.fsf@lanber.cam.citrix.com> (raw)
In-Reply-To: "Rene H. Larsen"'s message of "11 Nov 1999 02:31:59 +0100"

Rene> Rene H. Larsen <URL:mailto:rhl@traceroute.dk>

0> In article <87n1slizjk.fsf@worldonline.dk>, Rene wrote:

Rene> This came up on the list about 2 months ago, but nothing was done
Rene> about it.  This patch against current CVS will fix the message-id
Rene> generation to match the documentation:
Rene>
Rene> --- message.el.orig	Sat Nov  6 04:15:15 1999
Rene> +++ message.el	Thu Nov 11 02:25:28 1999
Rene> @@ -2939,14 +2939,15 @@
Rene>    (let ((system-name (system-name))
Rene>  	(user-mail (message-user-mail-address)))
Rene>      (cond
Rene> -     ((string-match "[^.]\\.[^.]" system-name)
Rene> -      ;; `system-name' returned the right result.
Rene> -      system-name)
Rene>       ;; Try `mail-host-address'.
Rene>       ((and (boundp 'mail-host-address)
Rene>  	   (stringp mail-host-address)
Rene>  	   (string-match "\\." mail-host-address))
Rene>        mail-host-address)
Rene> +     ;; Else try `system-name'
Rene> +     ((string-match "[^.]\\.[^.]" system-name)
Rene> +      ;; `system-name' returned the right result.
Rene> +      system-name)
Rene>       ;; We try `user-mail-address' as a backup.
Rene>       ((and user-mail
Rene>  	   (string-match "\\." user-mail)

But doesn't this mean that on a network of machines that share a
mail-host-address (quite common IME), that there's a much greater
chance of ID collision?  Don't use mail-host-address for what it's not
intended for - it's okay by me as a fallback, but as you have it,
there's no way to use it for its intended purpose without getting the
undesirable message-id behaviour.  Create a new variable instead, if
you must (message-id-host).

What would be even better is if someone defined a "Message-ID by UDP
or TCP" service one could connect to for unique IDs.

BTW, is there a way to follow-up a message keeping the original MIME
structure?  The labelling of the part containing a patch (above) has
been lost, and I would have liked to keep it.



  reply	other threads:[~1999-11-11 12:41 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
1999-11-11 12:41   ` Toby Speight [this message]
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=u7ljpuroj.fsf@lanber.cam.citrix.com \
    --to=toby.speight@streapadair.freeserve.co.uk \
    /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).