Yes, it is in text format, but it contains metadata as well as some parts of it are encoded.
For example, this is how the source eml-file looks like

and this is what I want to get as parsed plain text.

In other words, I need a tool which lets to work with EML data similar to JSON, for example.
Thank you for helping me!