Popular recipes by D. J. Hagberg http://code.activestate.com/recipes/users/2662063/2005-11-10T23:13:32-08:00ActiveState Code RecipesJACL script to purge messages on IMAP server (Tcl)
2005-11-10T23:13:32-08:00D. J. Hagberghttp://code.activestate.com/recipes/users/2662063/http://code.activestate.com/recipes/444768-jacl-script-to-purge-messages-on-imap-server/
<p style="color: grey">
Tcl
recipe 444768
by <a href="/recipes/users/2662063/">D. J. Hagberg</a>
(<a href="/recipes/tags/network/">network</a>).
</p>
<p>This script was written before I found out about the Cyrus "ipurge" command. It connects to a Cyrus IMAP server as the administrator, finds all Trash folders and deletes all messages older than 1 day based on the Received date. Requires JavaMail's mail.jar and activation.jar in the classpath.</p>