title: How do you iterate through each email in your inbox using python?
body: <p>I'm completely new to programming and I'm trying to build an autorespoder to send a msg to a specific email address.  </p>
  
  <p>Using an if statement, I can check if there is an email from a certain address in the inbox and I can send an email, but if there are multiple emails from that address, how can I make a for loop to send an email for every email from that specific address.</p>
  
  <p>I tried to do use this as a loop: </p>
  
  <pre><code>for M.search(None, 'From', address) in M.select(): 
  </code></pre>
  
  <p>but I get the error: "can't assign to function call" on that line</p>