test-imap is a very simple tool which runs through some of the IMAP commands and makes sure they don't crash.