From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62196 Path: news.gmane.org!not-for-mail From: Bjorn Solberg Newsgroups: gmane.emacs.gnus.general Subject: Re: High uid breaks (message-unique-id) Date: Fri, 10 Mar 2006 08:17:32 -0800 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 1142007852 9271 80.91.229.2 (10 Mar 2006 16:24:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2006 16:24:12 +0000 (UTC) Original-X-From: ding-owner+m10724@lists.math.uh.edu Fri Mar 10 17:24:10 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 1FHkOF-0003fm-PN for ding-account@gmane.org; Fri, 10 Mar 2006 17:22:57 +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 1FHkO6-0000lS-00; Fri, 10 Mar 2006 10:22:46 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FHkGo-0000lN-00 for ding@lists.math.uh.edu; Fri, 10 Mar 2006 10:15:14 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FHkGn-000555-8C for ding@lists.math.uh.edu; Fri, 10 Mar 2006 10:15:14 -0600 Original-Received: from adsl-69-235-32-209.dsl.irvnca.pacbell.net ([69.235.32.209] helo=maui53.famsolberg.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FHkGl-0002Wf-00 for ; Fri, 10 Mar 2006 17:15:11 +0100 Original-Received: from maui53.famsolberg.com (bjorn.famsolberg.com [127.0.0.1]) by maui53.famsolberg.com (8.13.4/8.13.4) with ESMTP id k2AGHWME028930 for ; Fri, 10 Mar 2006 08:17:32 -0800 Original-Received: (from bhso@localhost) by maui53.famsolberg.com (8.13.4/8.13.4/Submit) id k2AGHWtS028929; Fri, 10 Mar 2006 08:17:32 -0800 Original-To: ding@gnus.org In-Reply-To: (Simon Josefsson's message of "Sun, 05 Feb 2006 19:44:18 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: -2.2 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62196 Archived-At: 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? Bjorn.