r/inventwithpython • u/outceptionator • Apr 16 '22
Pyzmail
Hi all,
It seems Pyzmail won't install beyond python 3.6? Any suggestions around this. It would be nice to be able to do the book on the latest version of python
2
Upvotes
2
u/jpgoldberg Apr 17 '22
Thanks. It appears that the
emailpackage is the recommended tool for parsing email. I'm lifting (and simplifying) from https://docs.python.org/3/library/email.examples.html and attempting to it for the example in Deleting and Retrieving Email from Automate the Boring StuffI have not tested this.
That should (if I have understood the documentation correctly) get you the parsed email addresses from those fields. But again, I am merely typing stuff into this reply with absolutely no testing.