>>>>> "Aaron" == Aaron Stone <[EMAIL PROTECTED]> writes:

Aaron> Capping the value in the database, without some provisions for
Aaron> what to do will cause the whole system to come to a grinding halt
Aaron> after 4 billion messages.

Indeed, but that may happen anyway once the values exceed 2^32-1.  imapd
uses %llu to printf the values to the IMAP socket, so what happens when
they hit 4294967296 is dependant on the client's parsing code.  Either
the client will see (x & 0xFFFFFFFF) or its imap parsing code will
report a protocol error.  (I suspect most parsers will just multiply by
10 and add until they hit a non-digit, but some might stop when the
value exceeds 0xFFFFFFFF, either signalling an error or leaving the rest
of the digits for the next stage of the grammar.  Either way you get a
protocol error.)

Of course, there is no guarentee that all imap clients can even handle
an unsigned 32 bit UID.  elisp integers, as an example, only have 28
bits of precision, IIRC.

-JimC
-- 
James Cloos <[EMAIL PROTECTED]>         OpenPGP: 1024D/ED7DAEA6
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to