What format does Apple Mail store its emails in?
You can find a description of the format based on an reengineering effort here:

It has three parts:

The length of part 2, in bytes
The message itself
Message metadata (XML Property List)