When I use Python's poplib stat() method to check how many emails there are, it returns 0 even though there are emails in the server. Does anyone know why this happens?
I can connect to the server with my email address and password, but I can't see any emails.
Here's my code:
import poplib
pop_conn = poplib.POP3_SSL("pop.gmail.com")
pop_conn.user("[email protected]")
pop_conn.pass_("mypassword")
print('Messages: %s. Size: %s' % pop_conn.stat())
pop_conn.quit()
returns:
Messages: 0. Size: 0