diff --git a/src/driver/implementation/imap/imapdriver.c b/src/driver/implementation/imap/imapdriver.c index 45986ab..4d6e8ac 100644 --- a/src/driver/implementation/imap/imapdriver.c +++ b/src/driver/implementation/imap/imapdriver.c @@ -1236,7 +1236,7 @@ static int imapdriver_login_sasl(mailsession * session, { int r; - if (strcasecmp(auth_type, "oauth2") == 0) + if (strcasecmp(auth_type, "xoauth2") == 0) r = mailimap_oauth2_authenticate(get_imap_session(session), auth_name, password); else r = mailimap_authenticate(get_imap_session(session),