title: Parse an outlook mail from a specific sender in python in Mac OS
body: <p>I am trying to fetch some details that I get in a mail for a specific fellow developer. I wanted to create a python script to trigger of some actions as &amp; when a mail comes from him with a specific subject.</p>
  <p>Currently I am stuck on reading the mail part.</p>
  <p>On some google searching, I came across <strong>appscript</strong> which can help me achieving the same, I need help as to how to use this library for parsing the said email.</p>
  <p>I am trying to do something like this:</p>
  <pre><code>from appscript import app, k
  
  def make_msg(text):
      outlook = app('Microsoft Outlook')
  
      msg = outlook.make(
          new=k.outgoing_message,
          with_properties={
              k.subject: 'Test Email',
              k.plain_text_content: text})
  
      msg.make(
          new=k.recipient,
          with_properties={
              k.email_address: {
                  k.name: '&lt;My name&gt;',
                  k.address: '&lt;My email address&gt;'}})
  
      msg.open()
      msg.activate()
  
  
  if __name__ == '__main__':
      make_msg(&quot;Sample text&quot;)
  </code></pre>
  <p>I need help as to how to read from a mail sent from a specific sender with a specific subject.</p>
  <p>Appscript documentation: <a href="http://appscript.sourceforge.net/py-appscript/doc_3x/appscript-manual/index.html" rel="nofollow noreferrer">http://appscript.sourceforge.net/py-appscript/doc_3x/appscript-manual/index.html</a></p>
  <p>Or if any other library can be used for the same in Mac OS Outlook application, also will be helpful.</p>