dlevens Posted July 1, 2004 Posted July 1, 2004 After many days trying to get a plugging that shows quota usage for users mailboxes inside squirrelmail, I have come to the conclusion that nothing exists that works with cPanel to do this. I want to provide my users the ability to see from their squirrelmail how much quota they have used. Can someone write a script or pluggin that will work here at TCH for squirrelmail? The info is already posted in your cPanel if you click on manage accounts and then disk quota taking you here: http://******:2082/frontend/bluela...tml?extras=disk I attached a screenshot of what I am trying to offer. Dennis Quote
jandafields Posted July 1, 2004 Posted July 1, 2004 Not sure if this helps, but... http://www.squirrelmail.org/plugin_view.php?id=59 The following must be true for TCH. I don't know if it is or not... If you have an IMAP server with QUOTA Extension capability, you can use this plugin to view the current quota usage, which is displayed just above the folders list. If no quota is set, nothing is displayed. Quote
dlevens Posted July 3, 2004 Author Posted July 3, 2004 Thanks, I tried that plugin and the other one and cannot get them to work. I don't think TCH has the extension on and I don't think they run courier IMAP. I have asked around but so far no replies. Dennis Quote
jandafields Posted July 4, 2004 Posted July 4, 2004 Well, you could write a php script to read the size of the mail user's directory: /home/domain/mail/domain.com/user You would not be able to get the quota limit from cpanel, so you would have to put that value in another file or database. Now, you have the total space used and the total space available. This would be fairly straightforward to write and would look something like this to the user: You have used 7.5MB out of 100MB storage space. To implement a graphical bar may be more challenging, but there are lots of tutorials on the net for such things... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.