Nicolas Sebrecht 39b657194a XOAUTH2: don't try this authentication method when not configured
Checking if we have to run this authentication method once it's already passed
to imaplib2 is too late. Make the checks at correct time, before we try the
authentication method. IOW, before we call

  imapobj.authenticate('XOAUTH2', self.__xoauth2handler)

Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/442
Tested-by: Klemens Schölhorn <klemens@schoelhorn.eu>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2017-04-27 21:17:25 +02:00
..
2017-04-16 00:40:54 +02:00
2015-01-07 21:31:43 +01:00
2016-11-02 12:27:00 +01:00
2016-07-28 00:42:35 +02:00
2016-11-08 07:11:33 +01:00