Delete IMAP Mailboxes


EQ Forum Admin
Staff member

Delete one or more mailboxes based on a regular expression supplied by the user. For example:

-m "^thunder|^real|AA|^MOVED$|XXXX|zas"

It is advisable to do a test-run first to make sure that the regex will select the desired mailbox before actually deleting them. Use the -t argument to select "show what would be deleted but don't delete it" mode.

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.