IMAP Trash


EQ Forum Admin
Staff member

This script checks a user's IMAP mailboxes for deleted messages which it moves to the trash mailbox. Optionally the trash mailbox is emptied. is called like this:

./ -S host/user/password

Optional arguments:

-i <user file> format: user password, omit pwd if -a
-d debug
-t <trash mailbox name> (defaults to 'Trash')
-e empty the trash mailbox (default is not to empty it)
-a <admin user:admin password>
-L <logfile>
-m mailbox list (check just certain mailboxes,see usage notes)

If you have a question about using this script please reply.

If you would like to download the script please see How to get the IMAP Tools.