[dovecot-cvs] dovecot/src/lib-index mail-index.h,1.61,1.62

cras at procontrol.fi cras at procontrol.fi
Wed Jan 8 22:48:06 EET 2003


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv15712

Modified Files:
	mail-index.h 
Log Message:
Reserve UID 2^31-1



Index: mail-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- mail-index.h	5 Jan 2003 13:09:52 -0000	1.61
+++ mail-index.h	8 Jan 2003 20:48:04 -0000	1.62
@@ -497,8 +497,9 @@
 int mail_index_compress_data(struct mail_index *index);
 int mail_index_truncate(struct mail_index *index);
 
-/* Maximum allowed UID number. */
-#define MAX_ALLOWED_UID 4294967295U /* 2^32 - 1 */
+/* Maximum allowed UID number. Reserve UINT_MAX for "invalid uid",
+   used by at least THREAD extension. */
+#define MAX_ALLOWED_UID 4294967294U /* 2^32 - 2 */
 
 /* Max. mmap()ed size for a message */
 #define MAIL_MMAP_BLOCK_SIZE (1024*256)




More information about the dovecot-cvs mailing list