Fixed IMAP BODYSTRUCTURE parser and added unit test