I am trying to input my both account and password to the system and then wanna return the status of email login, True for success login. Now I am using poplib to login the account and return the email stat. Are there any method to return the login status by poplib at the same time (Or not by poplib)? Thanks.
import poplib
server = poplib.POP3(pop3_server)
print(server.getwelcome())
server.user(email)
server.pass_(password)
print('Messages: %s. Size: %s' % server.stat())
server.quit()