Gnus development mailing list
 help / color / mirror / Atom feed
* High uid breaks (message-unique-id)
@ 2006-02-03 16:30 Bjorn Solberg
  2006-02-05 18:44 ` Simon Josefsson
  0 siblings, 1 reply; 7+ messages in thread
From: Bjorn Solberg @ 2006-02-03 16:30 UTC (permalink / raw)


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.

Bjorn.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: High uid breaks (message-unique-id)
  2006-02-03 16:30 High uid breaks (message-unique-id) Bjorn Solberg
@ 2006-02-05 18:44 ` Simon Josefsson
  2006-02-08 22:19   ` Bjorn Solberg
  2006-03-10 16:17   ` Bjorn Solberg
  0 siblings, 2 replies; 7+ messages in thread
From: Simon Josefsson @ 2006-02-05 18:44 UTC (permalink / raw)
  Cc: ding

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) ?_))



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: High uid breaks (message-unique-id)
  2006-02-05 18:44 ` Simon Josefsson
@ 2006-02-08 22:19   ` Bjorn Solberg
  2006-03-10 16:17   ` Bjorn Solberg
  1 sibling, 0 replies; 7+ messages in thread
From: Bjorn Solberg @ 2006-02-08 22:19 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> 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) ?_))
>

That works perfectly, thank you!

Bjorn.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: High uid breaks (message-unique-id)
  2006-02-05 18:44 ` Simon Josefsson
  2006-02-08 22:19   ` Bjorn Solberg
@ 2006-03-10 16:17   ` Bjorn Solberg
  2006-03-14 14:16     ` Simon Josefsson
  1 sibling, 1 reply; 7+ messages in thread
From: Bjorn Solberg @ 2006-03-10 16:17 UTC (permalink / raw)


Simon Josefsson writes:

> 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) ?_))

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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: High uid breaks (message-unique-id)
  2006-03-10 16:17   ` Bjorn Solberg
@ 2006-03-14 14:16     ` Simon Josefsson
  2006-03-14 19:13       ` Reiner Steib
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Josefsson @ 2006-03-14 14:16 UTC (permalink / raw)
  Cc: ding

Bjorn Solberg <bjorn_ding1@hekneby.org> writes:

> Simon Josefsson writes:
>
>> 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) ?_))
>
> 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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: High uid breaks (message-unique-id)
  2006-03-14 14:16     ` Simon Josefsson
@ 2006-03-14 19:13       ` Reiner Steib
  2006-03-15  8:49         ` Simon Josefsson
  0 siblings, 1 reply; 7+ messages in thread
From: Reiner Steib @ 2006-03-14 19:13 UTC (permalink / raw)


>> Simon Josefsson writes:
[...]
>>> -     (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)))

(float (user-uid)) always is non-nil.  Shouldn't this be `floatp'
instead of `float'?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: High uid breaks (message-unique-id)
  2006-03-14 19:13       ` Reiner Steib
@ 2006-03-15  8:49         ` Simon Josefsson
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Josefsson @ 2006-03-15  8:49 UTC (permalink / raw)


Reiner Steib <reinersteib+gmane@imap.cc> writes:

>>> Simon Josefsson writes:
> [...]
>>>> -     (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)))
>
> (float (user-uid)) always is non-nil.  Shouldn't this be `floatp'
> instead of `float'?

Yes, thanks!  Fixed.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-15  8:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-03 16:30 High uid breaks (message-unique-id) Bjorn Solberg
2006-02-05 18:44 ` Simon Josefsson
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

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).