https://github.com/umisyam/IOT_Fall2015/blob/master/umi-email-hw.py
This simple script has two functions that searches your inbox:
- Based on the substring (it takes string input)
- Based on the array index (it takes integer input)
And then it sends out 2 emails with different subject and body copy containing result from raw_input 1 and 2. Change it your own email credentials to make sure it works! Everything is set to loop again after 1 minute time interval.