Running the script for the 2-nd time, the messages are not retrieved from the mail server
- by Max Li
I read the mails from my gmail account with the code following below.
import poplib
pop_conn = poplib.POP3_SSL('pop.gmail.com')
pop_conn.user('user') # result: '+OK send PASS'
pop_conn.pass_('password') # result: '+OK Welcome.'
print pop_conn.list()[1]
pop_conn.quit()
It shows me 1 message as expected.
However, if I run this…