classifyMessages

Return the encapsulated messages, classified by type.