Adding basic IMAP token parsing