Deleting mails from the command line?

SAiello at SAiello at
Thu Aug 19 12:30:57 EDT 2004


Kinda of topic here. Saw in your email youa re using imapsync, to import your 
emails. Was curious about the --exclude statement, and if you are using it. I 
am migrating from an Exchange 5.5 server, and I do not need the exchange 
folders (i.e. Calendar, Journal, etc). Do you know of any way to use imapsync 
and exclude more than one folder ?

On Wednesday 18 August 2004 07:46 am, you wrote:
> Hi everyone,
> On a new cyrus installation, we've just started importing lots of mail
> (imapsync) and it turns out that there are quite a few viruses (virii?)
> in there. I could easily tell my virus-scanner to delete each infected
> mail in /var/spool/imap/ but I'm quite sure that Cyrus will then
> consider these mailboxes as being corrupt.
> What would be a proper way to delete these emails, preferably from the
> command line or perl so I can script the whole thing and get rid of all
> the NetSky's and Sober's ?
> Regards, Paul Boven.
> ---
> Cyrus Home Page:
> Cyrus Wiki/FAQ:
> List Archives/Info:
Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list