title: Gmail api read/decode message c#
body: <p>I'm using the new gmail api in c# application, and I want to know how I can read the body of a message after getting the message with the get method? Can i get a MailMessage object from the "Raw" property of the message (to create a Raw from a mailMessage i use <a href="http://jason.pettys.name/2014/10/27/sending-email-with-the-gmail-api-in-net-c/" rel="nofollow">this</a>, is there a way to convert it back?), or i need to use the "Payload" property?</p>
  
  <p>This is my code: (the ListMessages and the GetMessage methods are from the 
  API Reference on google's site)</p>
  
  <pre><code>List&lt;Message&gt; msgList = ListMessages(gs, "me", "is:unread");
  
  string id = msgList[0].Id;
  Message msg = GetMessage(gs, "me", id);
  </code></pre>
  
  <p>Now what?</p>
  
  <p>Please help.</p>
  
  <p>Thanks.</p>