From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58472: [PATCH] Make `message-unique-id' less prone to collisions Date: Mon, 17 Oct 2022 11:34:44 +0300 Message-ID: <83mt9u3l23.fsf@gnu.org> References: <871qr794o2.fsf@rfc20.org> <83sfjm3lvu.fsf@gnu.org> <87lepehmzw.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24169"; mail-complaints-to="usenet@ciao.gmane.io" Cc: matt@rfc20.org, eggert@cs.ucla.edu, stefankangas@gmail.com, 58472@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 10:37:00 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okLcK-00066t-Jr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 10:37:00 +0200 Original-Received: from localhost ([::1]:43364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okLcI-0005XD-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 04:36:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLbO-0005Vo-Ik for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:36:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okLbO-0003HC-AN for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okLbO-0004NN-5R for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2022 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58472-submit@debbugs.gnu.org id=B58472.166599572216751 (code B ref 58472); Mon, 17 Oct 2022 08:36:02 +0000 Original-Received: (at 58472) by debbugs.gnu.org; 17 Oct 2022 08:35:22 +0000 Original-Received: from localhost ([127.0.0.1]:47203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLaj-0004M6-Mj for submit@debbugs.gnu.org; Mon, 17 Oct 2022 04:35:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLaV-0004LU-6T for 58472@debbugs.gnu.org; Mon, 17 Oct 2022 04:35:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47124) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLaP-0002vi-AC; Mon, 17 Oct 2022 04:35:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xiSY039UYWysqkoYoDwN5JijFDXYpEHh63KazuuCqSc=; b=GD7iWxXkins6 yPQOWa4A4xeU2OkM4VpUUQ9bdKWcKta70IB0n8KOuBdI40T5m1/H3ILUkxPkpWYP3Rh16l78Z1DVE 1GqgwwgR3grXqPaUDvP8iyAGbOaRKwLOGnPd4vCWG4jhTVfTcBENaMyXFEzuKirKmM2ozBonqOZbm 6uX0EdNbcEFWsKnf3RDw2EV2JgD6zvUGAe3X0VlE5k0ZVt5tDAKX9mN6EUywqJ3L7fLc7SG2ouXp6 unWP+UoOsppYgiK1XkA0d4NIvk4Jn3jteCM1zVJKzkQU+1/OFfwh/RM3CfxXbRSnzFT1GDi6HHIjb ca8wW1W9Dv2LZakdRgbrAQ==; Original-Received: from [87.69.77.57] (port=2782 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLaL-0001rl-Jn; Mon, 17 Oct 2022 04:34:59 -0400 In-Reply-To: <87lepehmzw.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 17 Oct 2022 10:29:07 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245700 Archived-At: > From: Lars Ingebrigtsen > Cc: Paul Eggert , matt@rfc20.org, > stefankangas@gmail.com, 58472@debbugs.gnu.org > Date: Mon, 17 Oct 2022 10:29:07 +0200 > > I sort of agree with you here, but not totally -- I think a `make-nonce' > function would be useful in general, because this is an area that's > genuinely difficult to get right, and having a function that does this > for you -- correctly -- is good. > > But, like you, I'm not sure about the proposed changes otherwise. > > And, like I've said before, there's a reason the Message-ID is on the > format it's on now -- it has information that allows users to do work on > it (so changing it will break some use cases), and it's short (which > makes it efficient in many algos), and it's obviously "good enough" -- > it's been this way for decades without any problems. Agreed. > So I'd prefer not to change `message-make-id', but adding a `make-nonce' > function would be nice anyway. If we want a make-nonce function for unrelated reasons, by all means let's discuss that -- but in a separate thread, and with the reasons and use cases spelled out. Doing it as a side effect of what was a wishlist bug report for a minor feature to begin with doesn't sound right to me.