#!/usr/bin/perl # Mailbox Size Listing Script, version 1.0 # Copyright 2002, Joshua Cantara # This program is licensed under the GPL. use CLI; use CGI; print "Content-Type: text/html\n\n"; ########################################################## # Change the variables below to your settings # ########################################################## my $domain = 'yourdomain.com'; my $cgserver = '127.0.0.1'; my $login = 'postmaster@yourdomain.com'; my $password = 'postmasterpassword'; # Change this variable to whatever size, in megs, you # consider too large for an account. my $toobig = '10'; ########################################################## # You should not have to change anything below this point# ########################################################## my $username; my $storage = 0; my $total = 0; my $bigtotal = 0; my $totalstorage = 0; my $accountdata; my $realname; my $cli = new CGP::CLI ( { PeerAddr => $cgserver, PeerPort => 106, login => $login, password => $password } ) || die "Cannot login to CGPro"; print qq|