batch delete mail from imap folder

Francesco Trimarchi ftrimarchi at auroranetwork.it
Mon Aug 28 16:42:14 CEST 2006


Many thanks,
i will try your suggestions asap.

Francesco

----- Messaggio originale -----
Da: "Andreas Micklei"<andreas.micklei at ivistar.de>
Inviato: 28/08/06 12.44.35
A: "kolab-users at kolab.org"<kolab-users at kolab.org>
Oggetto: Re: batch delete mail from imap folder

Hello,

Am Samstag, 26. August 2006 22:35 schrieb Francesco Trimarchi:
> I just succesfully installed my  kolab server with spamassassin learning
> as explained in the wiki site (Fighting spam) using the Spamandclam.sh
> script.
> I have this problem, I want to delete all spam and ham mails from the
> two shared folder
>  /kolab/var/imapd/spool/domain/*/shared^spam/ and
> /kolab/var/imapd/spool/domain/*/shared^ham/
>
> I tried to delete them directly from file system but cyrus doesn't like
> this!
>
> Someone has some suggestion to implement this file deletetion ?

I don't know if this is the kind of solution you are looking for. You could 
just set your email client to Auto-Delete Emails that are older than n days 
in these two folders (supposing you have the right permissions).

Alternatively using fetchmail, getmail or some other IMAP sync tool with the 
correct options should do the trick. This sould also work from a cron job. I 
have not tried it though.

regards,
Andreas Micklei

_______________________________________________
Kolab-users mailing list
Kolab-users at kolab.org
https://kolab.org/mailman/listinfo/kolab-users




More information about the users mailing list