From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26627 Path: main.gmane.org!not-for-mail From: Toby Speight Newsgroups: gmane.emacs.gnus.general Subject: Re: message.el: mail-host-address ignored Date: 11 Nov 1999 12:41:00 +0000 Organization: Citrix Systems (Cambridge) Sender: owner-ding@hpc.uh.edu Message-ID: References: <87n1slizjk.fsf@worldonline.dk> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163799 20396 80.91.224.250 (21 Oct 2002 01:29:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:29:59 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA17562 for ; Thu, 11 Nov 1999 07:42:36 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id GAB05526; Thu, 11 Nov 1999 06:42:35 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 11 Nov 1999 06:41:49 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id GAA02361 for ; Thu, 11 Nov 1999 06:41:36 -0600 (CST) Original-Received: from gatekeeper.ctxuk.citrix.com (root@gatekeeper.ctxuk.citrix.com [195.153.38.114]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA17553 for ; Thu, 11 Nov 1999 07:41:05 -0500 (EST) Original-Received: from sh.ctxuk.citrix.com (sh.ctxuk.citrix.com [10.30.224.4]) by gatekeeper.ctxuk.citrix.com (8.8.7/BSCF-1.7) with ESMTP id MAA07322 for ; Thu, 11 Nov 1999 12:41:02 GMT Original-Received: from hwmail01.ctxuk.citrix.com (hwmail01.ctxuk.citrix.com [10.30.224.23]) by sh.ctxuk.citrix.com (8.8.7/BSCF-1.7) with ESMTP id MAA27310 for ; Thu, 11 Nov 1999 12:41:02 GMT Original-Received: from lanber.cam.citrix.com (LANBER [10.70.1.235]) by hwmail01.ctxuk.citrix.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id 45YDFGG5; Thu, 11 Nov 1999 12:41:01 -0000 Original-To: The Gnus Mailing List Original-Lines: 44 In-Reply-To: "Rene H. Larsen"'s message of "11 Nov 1999 02:31:59 +0100" X-Author-Info: Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:26627 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:26627 Rene> Rene H. Larsen 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.