On Wed, 2009-01-21 at 21:13 -0800, Tom Collins wrote: > Two thoughts on quotas. > > You're going to have to deal in sub-megabyte numbers, since the size > of most messages are measured in KB. Maybe you could track the quota > in kbytes, rounding up/down as necessary? > > All programs that deal with the quota (maildirsize file) will have to > use 128-bit numbers (long long?) or whatever new method you come up > with. This includes not just vpopmail, but your IMAP server and > potentially maildrop and qmail (if you have any .qmail files that are > handled by qmail and not vdelivermail). Maybe they can use a > dynamically linked library? > In computer science, arbitrary-precision arithmetic, also called bignum arithmetic, is a technique whereby programs perform calculations on integers or rational numbers with an arbitrary number of digits of precision.
I am planning to use GMP GNU Multiple Precision Arithmentic Library. It claims to be the fastest bignum library on planet. GMP is a free library/ There is no practical limit to the precision except the ones implied by the available memory in the machine. GMP has a rich set of functions to help you deal with these large numbers. http://gmplib.org At this point, I am not sure if bignum is an overkill, but I will be trying this soon and will keep you folks posted Regards Manvendra (http://www.indimail.org) !DSPAM:4978452a32681009520127!