Scriptable IMAP server for client integration testing