simplegeo/python-oauth2 — Issue #101: IMAP4_SSL.authenticate() wrapper should return (status, data)
Author: kkurian
Created: 2011-12-11 17:05:07+00:00
State: open

in clients/imap.py:

imaplib.IMAP4_SSL.authenticate(self, 'XOAUTH',
lambda x: oauth2.build_xoauth_string(url, consumer, token))

should read:

return imaplib.IMAP4_SSL.authenticate(self, 'XOAUTH',
lambda x: oauth2.build_xoauth_string(url, consumer, token))

Without this change the oauth2 IMAP4_SSL.authenticate() method does not mimic the return behavior of its imaplib counterpart and, what's worse, the return values from imaplib are lost.