On Wed, Jan 17, 2007 at 10:52:28PM +0200, Mehmet Tolga Avcioglu wrote: > > >> 1. The limit for a mailbox is 2 GB. Do you plan on increasing the > >> limit in a future version of courier-imap? > > > > (1) You won't have this problem on 64-bit systems > > > > (2) You shouldn't have this problem on 32-bit systems with a 64-bit off_t, > > if you are running courier-imap-4.1.2 > > I am confused about this one. Are we talking about limit of a single > message or the maildir? If we are talking about maildir why is it > important that the platform support >2GB files?
Because the maildir quota calculation uses 'off_t' to accumulate the file sizes. The problem is that there is no easy portable way to get a guaranteed 64-bit accumulator on a 32-bit platform. 'long' is only guaranteed by ANSI C to be at least 32 bits. Some platforms have 'long long' (and printf %lld), but not all. Some platforms have quad_t or int64_t, but may have no printf conversion character for these types, so you would end up having to write your own code to convert these values to text for writing to the quota file. You may have strtoll() for when reading the quota file in, or you may not. This has been discussed at length on this list before. Whilst it may be possible to do this (with some messy autoconf hackery), the clinching argument against it was that maildir implementations must be interoperable - there is no point in having courier-imap cope with quotas over 2GB if the MTA which delivers messages into the maildir cannot. I looked at the exim quota code, and it has the same limitations as courier: it relies on off_t. I have not checked or heard reports about others like postfix, but please feel free to investigate. I guess this wouldn't be a problem for people using the whole courier-MTA suite, or those using deliverquota or maildrop exclusively to deliver mail. Regards, Brian. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
