I’ve been trying to use ‘import poplib’ to access gmail, since I have Pop turned on in settings- but how do I actually then check the message for its ‘from’ address and then run something based on it? Also, what would be the command to strip the ‘body’ text from the message?
Share
Here is how you can get subject and sender of each message in your GMail inbox using imaplib.
You will probably need more information. Start from the official imaplib documentation.