Public bug reported:
Binary package hint: vpopmail-bin
Hello and good evening!
Encountered a problem with quotas in vpopmail:
If I set a quota for an vpopmail email account to a value >2GB, for
example with
vsetuserquota [EMAIL PROTECTED] 2200M
the quota check is not working anymore as vpopmail uses "long" values
for storing maildir size and quotas.
"vuserinfo [EMAIL PROTECTED]", for example, returns the following:
(quota set to 2200M, maildir contains about 90MB)
name: tester
[...]
limits: No user limits set.
dir: /var/lib/vpopmail/domains/tester.com/tester
quota: 2306867200S
usage: 100%
account created: Tue Feb 19 18:45:44 2008
last auth: Never logged in
I would expect to see "usage: 4%".
I checked the source code and found out, that, within the files
"maildirquota.c" and "maildirquota.h", there are different data types
used for storing the quota and/or maildir size (long, unsigned long,
off_t). I modifed the code so that it is now working with quotas up to
2^57 bytes, but I do not know how this code can make it into the next
distribution.
Modified files are attached to this report. Till now, I have only tested
vuserinfo but none of the other apps. If you have questions, please
email me at [EMAIL PROTECTED]
thx,
Andreas
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.04
DISTRIB_CODENAME=feisty
DISTRIB_DESCRIPTION="Ubuntu 7.04"
PACKAGE= vpopmail-bin 5.4.17-0.dotdeb.1
** Affects: vpopmail (Ubuntu)
Importance: Undecided
Status: New
--
quota not working for maildirs >2GB
https://bugs.launchpad.net/bugs/194524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs