batch removal script

David Base base_david at bah.com
Wed Feb 23 14:37:04 EST 2005


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:
> 
> 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
> 
> ---------------------------------------------------------------------------------------------------
> Bernadette Boyle
> IT Services
> Caledonian University
> Harley Building, H035
> 70 Cowcaddens Road
> Glasgow G4 OBA
> 0141 331 3597
> ------------------------------------------------------------------------------------------------------
>
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list