Oct-04-2018, 11:13 AM
msg is a variable that holds current message (in the code on page https://gist.github.com/robulouski/7441883)
if you look at the code of the page you reference, you will see:
so package name is email and msg.get_payload() should be visible in that code.
if you look at the code of the page you reference, you will see:
msg = email.message_from_string(data[0][1])as you can see, it holds result of calling method message_from_string from class email (which you import)
so package name is email and msg.get_payload() should be visible in that code.