imap: don't pre-declare the imap.{Response,Command}
imap: factor out initClient()
imap: factor out gmailSearch()