From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62238 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: High uid breaks (message-unique-id) Date: Tue, 14 Mar 2006 15:16:56 +0100 Message-ID: <871wx5f6w7.fsf@latte.josefsson.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142346007 20874 80.91.229.2 (14 Mar 2006 14:20:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2006 14:20:07 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10765@lists.math.uh.edu Tue Mar 14 15:19:56 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 1FJAMH-0002rI-I7 for ding-account@gmane.org; Tue, 14 Mar 2006 15:18:46 +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 1FJAM6-0008Et-00; Tue, 14 Mar 2006 08:18:34 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FJAKq-0008En-00 for ding@lists.math.uh.edu; Tue, 14 Mar 2006 08:17:16 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FJAKl-0001eS-In for ding@lists.math.uh.edu; Tue, 14 Mar 2006 08:17:16 -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 1FJAKk-0003xa-00 for ; Tue, 14 Mar 2006 15:17:10 +0100 Original-Received: from localhost.localdomain (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 k2EEGwCg022561; Tue, 14 Mar 2006 15:16:59 +0100 Original-To: Bjorn Solberg OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060314:ding@gnus.org::ApbMoBMfjl48PZOQ:2RB3 X-Hashcash: 1:21:060314:bjorn_ding1@hekneby.org::izzHPxLaIDWnCCzt:Au4G In-Reply-To: (Bjorn Solberg's message of "Fri, 10 Mar 2006 08:17:32 -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.88, clamav-milter version 0.87 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:62238 Archived-At: Bjorn Solberg writes: > Simon Josefsson writes: > >> 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) ?_)) > > This patch has worked well for me for a month now. I haven't seen it > make it into CVS though - shouldn't it go there? Installed on the trunk and v5-10.