Your situation is as similar what I face. The quota usage will be displayed correctly if you append "S" to the first line of your maildirsize like "131072000S". Also, GETQUOTAROOT will display something like Bill's mention. It is because you use qmailadmin to create email account or set quota to email account. Qmailadmin use "vsetuserquota" to implement what you want but amend maildirsize without appending "S".
Try a test like: vsetuserquota [EMAIL PROTECTED] 10M vuserinfo will show you "quota: 10485760S" but what in your maildirsize is "10M" and quota_usage can't work in squirrelmail. Try again like: vsetuserquota [EMAIL PROTECTED] 10485760 (similar to the implementation by qmailadmin) vuserinfo will also show you "quota: 10485760S". What in your maildirszie is "10485760" and quota_usage still can't work. Again: vsetuserquota [EMAIL PROTECTED] 10485760S vuserinfo is "quota: 10485760S" and maildirszie is "10485760S". As a result, quota_usage work ! I have took a look to the function.php of quota_usage, it use "GETQUOTAROOT" to collect quota information from IMAP connection. I regret that I am not a C programmer and don't know how to amend sourcecode of vpopmail or qmailadmin. Any solution or suggestion is welcome. Thanks Frankie ----- Original Message ----- From: "Stephen Harmon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 29, 2004 6:40 AM Subject: Re: [toaster] Quota Usage Plugin > Attached is one of my maildirsize files. Does this look normal? VPOPMAIL > and VCHKPW are the OWNER:GROUP of the file with -rw- --- --- rights. > > Thanks, > > Stephen > ----- Original Message ----- > From: "Bill Shupp" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, February 28, 2004 3:05 PM > Subject: Re: [toaster] Quota Usage Plugin > > > > Stephen Harmon wrote: > > > When I connect it shows: > > > > > > * OK [COMPATIBILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE > THREAD=ORDERSUBJECT > > > THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP > > > ready. > > > > > > Thanks, > > > > > > Stephen > > > > You need to log in, then issue the appropriate commands, like so: > > > > $ telnet localhost 143 > > Trying 127.0.0.1... > > Connected to localhost.localdomain. > > Escape character is '^]'. > > * OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc. See > > COPYING for distribution information. > > . login [EMAIL PROTECTED] password > > . OK LOGIN Ok. > > . getquotaroot "inbox" > > * QUOTAROOT "." "ROOT" > > * QUOTA "ROOT" (STORAGE 444072 512000) > > . OK GETQUOTAROOT Ok. > > . logout > > * BYE Courier-IMAP server shutting down > > . OK LOGOUT completed > > Connection closed by foreign host. > > > > This is all quotausage does, and then does the math on the response to > > see what current usage is. If this fails, then the imap server is not > > recognizing the quota settings in vpopmail. > > > > Regards, > > > > Bill Shupp > > >