From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61851 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: High uid breaks (message-unique-id) Date: Sun, 05 Feb 2006 19:44:18 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139165494 31212 80.91.229.2 (5 Feb 2006 18:51:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2006 18:51:34 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10381@lists.math.uh.edu Sun Feb 05 19:51:33 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F5oyx-0006pt-Ab for ding-account@gmane.org; Sun, 05 Feb 2006 19:51:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1F5oys-0000oB-00; Sun, 05 Feb 2006 12:51:26 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F5os5-0000o6-00 for ding@lists.math.uh.edu; Sun, 05 Feb 2006 12:44:25 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1F5os3-0008Un-Aj for ding@lists.math.uh.edu; Sun, 05 Feb 2006 12:44:25 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F5os2-0001Th-00 for ; Sun, 05 Feb 2006 19:44:22 +0100 Original-Received: from latte.josefsson.org (jas@yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id k15IiJp5004023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 5 Feb 2006 19:44:20 +0100 Original-To: Bjorn Solberg OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060205:bjorn_ding1@hekneby.org::6GAztxS/qh/UP044:2irL X-Hashcash: 1:21:060205:ding@gnus.org::MsQTkEBfx4fX6tIo:F4os In-Reply-To: (Bjorn Solberg's message of "Fri, 03 Feb 2006 08:30:14 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61851 Archived-At: Bjorn Solberg writes: > I recently was handed an iMac (G5) to use: > > # uname -a > Darwin szbsolberg 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan 3 18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc > $ id > uid=2108389971(bsolberg) gid=814917730(OFFICE\domain users) groups=814917730(OFFICE\domain users), 81(appserveradm), 79(appserverusr), 80(admin) > > and noticed that Gnus wouldn't let me reply to messages. A little > research lead to this patch: > > # diff message.el-7.122 message.el > 4770c4770 > < (if (memq system-type '(ms-dos emx vax-vms)) > --- >> (if (memq system-type '(ms-dos emx vax-vms darwin)) > > The reason is that (user-uid) returns 2108389971.0 which is not an > integer which causes trouble in (message-number-base36 ()). The number > is too high to be truncated to an integer. I though about dividing by > some number until the value became low enough to be interpreted as an > integer, but decided to skip the whole issue by the above patch. (This > is running in CVS GNU Emacs.) > > It works well for me, but those in the know of the details and > surrounding issues of this may have a better way to deal with it. How about this? It may be more general. --- message.el 01 Feb 2006 12:36:39 +0100 7.122 +++ message.el 05 Feb 2006 19:43:57 +0100 @@ -4767,7 +4767,9 @@ (* 25 25))) (let ((tm (current-time))) (concat - (if (memq system-type '(ms-dos emx vax-vms)) + (if (or (memq system-type '(ms-dos emx vax-vms)) + ;; message-number-base36 doesn't handle bigints. + (float (user-uid))) (let ((user (downcase (user-login-name)))) (while (string-match "[^a-z0-9_]" user) (aset user (match-beginning 0) ?_))