Re: delete specific mail in all folders

2009-05-11 Thread LALOT Dominique
2009/5/11 Paul van der Vlis > Gerald Nowitzky schreef: > > Hello! > > > > I have been confronted with a request today: We are running cyrus as imap > > server. We have currently about 3 million files and 150GB in our mail > dir. > > One user has accidently sent something confidential to all users

Re: delete specific mail in all folders

2009-05-11 Thread Paul van der Vlis
Gerald Nowitzky schreef: > Hello! > > I have been confronted with a request today: We are running cyrus as imap > server. We have currently about 3 million files and 150GB in our mail dir. > One user has accidently sent something confidential to all users via a list. > The request was, of cours

Re: delete specific mail in all folders

2009-05-11 Thread LALOT Dominique
That could be something like that script (test and adapt). I'm just a beginer with Mail::IMAPTalk and I don't use correctly search method The trick will be to find the from and subject and/or the date.. Dom #!/usr/bin/perl use Mail::IMAPTalk; $IMAP = Mail::IMAPTalk->new( Server =>

delete specific mail in all folders

2009-05-11 Thread Gerald Nowitzky
Hello! I have been confronted with a request today: We are running cyrus as imap server. We have currently about 3 million files and 150GB in our mail dir. One user has accidently sent something confidential to all users via a list. The request was, of course, to delete the mail from all mailbo