This article explains how to open the source code of an email in the Apple Mail app on Mac OS X Lion (10.7) and later.
How to Organize or Hide Thousands of Emails in Mac Mail – in 4 Easy Steps
Behind every email is hidden source code that contains information about the message: who sent it, how it traveled, and other details. In Mail, you can quickly view the source code information for any email. Here's how to view it.
Open an email in the Mail app on your Mac.
Select View > Message > Raw Source Code from the menu to open the source code in a separate window.