2008-12-09 9 views
7

Ich lief in ein Problem mit Python imaplib und Google Mail-Authentifizierungsmechanismus:Python imaplib Gmail authentifizieren Ausfall

>>> import imaplib 
>>> imap = imaplib.IMAP4_SSL('imap.gmail.com', 993) 
>>> imap.authenticate('[email protected]', 'Bob Dole likes your style!') 
Traceback (most recent call last): 
    ... 
imaplib.error: AUTHENTICATE command error: BAD ['TODO (not supported yet) 31if3458825wff.5'] 

Wenn die Authentifizierung nicht unterstützt wird, wie funktioniert ein Log in?

Antwort

2

Die folgenden Werke für mich:

srv = imaplib.IMAP4_SSL("imap.gmail.com") 
srv.login(account, password) 

Ich denke, mit login() erforderlich ist.

Verwandte Themen