Made imap parser into a binary parser