IMAP commands.
Modified IMAP parser constructor to make testing easier.