Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <simon@josefsson.org>
To: Elias Oltmanns <eo@nebensachen.de>
Cc: ding@gnus.org
Subject: Re: Serious IMAP problems because Gnus doesn't behave RFC compliant
Date: Wed, 03 Oct 2007 12:48:00 +0200	[thread overview]
Message-ID: <87przwlbj3.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <87tzpbgtog.fsf@denkblock.local> (Elias Oltmanns's message of "Mon, 01 Oct 2007 09:50:23 +0200")

Elias Oltmanns <eo@nebensachen.de> writes:

> Hi all,
>
> it would appear that Gnus currently by design cannot possibly comply
> with RFC 3501. The problem is that according to RFC 3501 a UID may be
> any 32bit unsigned integer, whereas ELisp only supports 28bit signed
> integers---on my system anyway.

Wasn't the bit size increased recently?  But still, on 32-bit systems it
still isn't the full 32 bits.  On 64-bit systems, though, I believe
elisp integers can hold close to 64-bits.

> This has the rather unpleasant consequence that I can't even open one of
> my IMAP mailboxes in Gnus since messages appear to have negative UIDs
> just because of an integer overflow. So, the question is: What can be
> done about it?

Implement bignum in elisp, translate UIDs to locally maintained lower
article numbers (nn)imap.el (messy!), run a translating IMAP-proxy, or
buy a 64-bit machine. :)

If all UIDs in the mailbox is high, you might solve this by substracting
a fixed value from all UIDs in that mailbox.  I think even this will
also be quite messy to implement.

I think XEmacs supports bignum nowadays?

/Simon



  reply	other threads:[~2007-10-03 10:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-01  7:50 Elias Oltmanns
2007-10-03 10:48 ` Simon Josefsson [this message]
2007-10-03 12:30   ` Greg Troxel
2007-10-03 14:33     ` Daniel Pittman
2007-10-03 13:12   ` Reiner Steib
2007-10-03 14:20     ` Simon Josefsson
2007-10-09 19:07 ` Ken Raeburn

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=87przwlbj3.fsf@mocca.josefsson.org \
    --to=simon@josefsson.org \
    --cc=ding@gnus.org \
    --cc=eo@nebensachen.de \
    /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).