Google for imapcreate.pl. Use it with the -d flag (for delete) within a
shell script that reads through a list of usernames. For example:
for USER in `cat userlist.txt`; do
/imapcreate.pl -d -s -u cyrusaccount -p 'cyrusaccountpassword' -m $USER
localhost
done
> "Boyle, Bernadette" wrote:
>
Something like this?
#!/usr/bin/perl
use Cyrus::IMAP::Admin;
my $partition = 'default';
$client = Cyrus::IMAP::Admin->new('localhost');
defined($client) || die "failed to get Admin obj.";
$ret = $client->authenticate(User => 'cyrus', Password => 'xxx', );
while (<>) {
chomp;
$mbox =
Hello,
I would like to
remove a couple of thousand users mailboxes. Does anyone have a script that
would do this in batch please for a Solaris system running perl and all the
usual shells.
Thanks
Bernie