N00b Needs Mail Help

I’m a complete and total noob to Notes. I need to perform a (seemingly) simple task and would appreciate some direction.

Assume I have:

  1. A notes db.

  2. A notes id for a mail message.

  3. The 8.0 C++ SDK.

From this I need to:

  1. Retrieve said message.

  2. Convert it to MIME.

  3. Get a text stream or string of the entire MIME message.

  4. Get any SMTP envelope-type data (sender, recipient, connecting IP, etc.) that might be available.

All help is greatly appreciated.