IMAPFind is a command line tool for accessing your IMAP mailbox.
The current version can be found here: