Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: High uid breaks (message-unique-id)
Date: Sun, 05 Feb 2006 19:44:18 +0100	[thread overview]
Message-ID: <jas8xsphchp.fsf@latte.josefsson.org> (raw)
In-Reply-To: <m3lkwswgkp.fsf@pacbell.net> (Bjorn Solberg's message of "Fri, 03 Feb 2006 08:30:14 -0800")

Bjorn Solberg <bjorn_ding1@hekneby.org> 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) ?_))



  reply	other threads:[~2006-02-05 18:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-03 16:30 Bjorn Solberg
2006-02-05 18:44 ` Simon Josefsson [this message]
2006-02-08 22:19   ` Bjorn Solberg
2006-03-10 16:17   ` Bjorn Solberg
2006-03-14 14:16     ` Simon Josefsson
2006-03-14 19:13       ` Reiner Steib
2006-03-15  8:49         ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jas8xsphchp.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).