Added YAML front matter parsing for messages