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
users" <your-email-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 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 with the exception of trash 
> > folders.
> > that should give a much clearer picture. in addition it can scale 
> > better.
> 
> How about using `vpopbull -n` (maybe `vpopbull -n -V`) to get 
> a list of email accounts and then `vuserinfo -Q 
> <emailaddress>` to get the quota usage?
> 
> I think that you could even use vuserinfo -d to get the path 
> to the user's maildir, delete the maildirsize file, and then 
> call vuserinfo -Q to have the file rebuilt.
> 
> --
> Tom Collins  -  [EMAIL PROTECTED]
> QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: 
> http://vpopmail.sf.net/ You don't need a laptop to 
> troubleshoot high-speed Internet: 
> sniffter.com
> 
> 
> 

Reply via email to