title: Reading and parsing email from Gmail using C#, C++ or Python
body: <p>I have to do a Windows application that from times to times access a Gmail account and checks if there is a new email. In case there is, it must read the email body and subject (a simple text email, without images or attachments).</p>
  
  <p>Please, do not use paid libs, and in case of any other libs used, give the download path.</p>
  
  <p>And I need the email body and subject only. So if the long and complex message that comes from Gmail could be parsed and only two strings containing the subject and the body, it would be perfect.</p>
  
  <p>Finally, I only have to get the new messages arrived since the last execution. So the read messages could be marked as "read" and only the new ones (marked as "new") are considered.</p>
  
  <p>The code can be written in Python or C++, but I prefer it in C#.</p>
  
  <p>Related question:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/315362/">Properly formatted example for Python iMAP email access?</a></li>
  </ul>