XOAUTH2: raise error when oauth_request_url is missing for IMAP type
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
@@ -273,8 +273,8 @@ class IMAPRepository(BaseRepository):
|
|||||||
self._oauth2_request_url = oauth2_request_url
|
self._oauth2_request_url = oauth2_request_url
|
||||||
return self._oauth2_request_url
|
return self._oauth2_request_url
|
||||||
|
|
||||||
#raise OfflineImapError("No remote oauth2_request_url for repository "
|
raise OfflineImapError("No remote oauth2_request_url for repository "
|
||||||
#"'%s' specified."% self, OfflineImapError.ERROR.REPO)
|
"'%s' specified."% self, OfflineImapError.ERROR.REPO)
|
||||||
|
|
||||||
def getoauth2_refresh_token(self):
|
def getoauth2_refresh_token(self):
|
||||||
return self.getconf('oauth2_refresh_token', None)
|
return self.getconf('oauth2_refresh_token', None)
|
||||||
|
Reference in New Issue
Block a user