in reply to Getting message body structure

Isn't the header just there? Start reading lines.