Re: [vchkpw] listing over-quota users

2005-03-11 Thread green-vpopmail
what I have set up might be a little different from you have, but take a look at this: # ls -al total 26

Re: [vchkpw] listing over-quota users

2005-03-11 Thread Charles Sprickman
On Fri, 11 Mar 2005 [EMAIL PROTECTED] wrote: this is a listing of a sample Maildir directory on my server. it has all these files and directories that have to do with courier IMAP. while they don't take much in some cases, sometimes they can take a couple of percent from the overall quota. in

Re: [vchkpw] listing over-quota users

2005-03-11 Thread green-vpopmail
but wait, there is more!. :) in squirrelmail try moving a big email from inbox to some folder. open that folder and delete the email. quota usage won't change as it should. effectively, deletion from any folder other than INBOX will not change quota usage. there is plenty of inconsistencies

Re: [vchkpw] listing over-quota users

2005-03-10 Thread Rainer Duffner
Charles J. Boening wrote: How about this? snip filename='/home/vpopmail/bin/overquota.sh' #!/bin/sh for i in `/home/vpopmail/bin/vpopbull -n -V`; do echo `/home/vpopmail/bin/vuserinfo -Q $i` $i done /snip Called like this /home/vpopmail/bin/overquota.sh | grep 100% | mail -s Overquota

RE: [vchkpw] listing over-quota users

2005-03-10 Thread Charles J. Boening
How about the following the following command here | grep -v ^[0-9]% Should work. Charlie -Original Message- From: Rainer Duffner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 11:56 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] listing over-quota users Charles J

Re: [vchkpw] listing over-quota users

2005-03-10 Thread Charles Sprickman
On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote: this method is of course fast and dirty, but it might not work for everyone out there. the best aproach is to write a perl script that runs queries on a database, gets path to a user's mailbox on the server, uses File::Find to include only files in

Re: [vchkpw] listing over-quota users

2005-03-10 Thread Rainer Duffner
Charles J. Boening wrote: How about the following the following command here | grep -v ^[0-9]% Should work. Yup. I always get confused where I have to set the quotes... Thanks. Rainer -- === ~ Rainer Duffner - [EMAIL PROTECTED] ~ ~

RE: [vchkpw] listing over-quota users

2005-03-09 Thread Charles J. Boening
Here's what I do. I don't have too many domains or users do it doesn't take too long. du -sk /home/vpopmail/domains/*/*/Maildir /tmp/maildirusage du -sk /home/vpopmail/domains/*/*/*/Maildir /tmp/maildirusage cat /tmp/maildirusage | sort -n | tail -n50 | sort -n -r | mail -s Mail User Quota

Re: [vchkpw] listing over-quota users

2005-03-09 Thread green-vpopmail
this method is of course fast and dirty, but it might not work for everyone out there. the best aproach is to write a perl script that runs queries on a database, gets path to a user's mailbox on the server, uses File::Find to include only files in Maildir/cur and Maildir/new as well as

Re: [vchkpw] listing over-quota users

2005-03-09 Thread Tom Collins
On Mar 9, 2005, at 6:15 PM, [EMAIL PROTECTED] wrote: the best aproach is to write a perl script that runs queries on a database, gets path to a user's mailbox on the server, uses File::Find to include only files in Maildir/cur and Maildir/new as well as :subfolders:/cur and :subfolders:/new

RE: [vchkpw] listing over-quota users

2005-03-09 Thread Charles J. Boening
-addy Charlie -Original Message- From: Tom Collins [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 4:52 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] listing over-quota users On Mar 9, 2005, at 6:15 PM, [EMAIL PROTECTED] wrote: the best aproach is to write a perl