GNU bug report logs -
#78366
30.1; auth-source-xoauth2-plugin conflicts with multiple Google accounts
Previous Next
Reported by: Anush V <j <at> gnu.org>
Date: Sun, 11 May 2025 02:46:02 UTC
Severity: normal
Tags: fixed
Found in version 30.1
Fixed in version 31.1
Done: Robert Pluim <rpluim <at> gmail.com>
Full log
Message #17 received at 78366 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Tue, 13 May 2025 09:55:24 -0700, Xiyue Deng <manphiz <at> gmail.com> said:
>>
>>
>> I did some debugging. According to comment “;; A string result is an
>> error.” in the function smtpmail-try-auth-methods, the function call
>> (smtpmail-try-auth-method process 'xoauth2 "user" "password") should
>> return a string when authentication fails. However, it currently
>> returns a list instead, which prevents other authentication methods
>> from being tried.
>>
>> [...]
Xiyue> Thanks for the investigation! If the try-method don't fallback to the
Xiyue> other supported auth methods then it will break. I tried to read the
Xiyue> code of `smtpmail-try-auth-method' for xoauth2[1], and besides lacking
Xiyue> encoding user and password into utf-8, I don't see anything obviously
Xiyue> different from plain[2] and not sure why it would return a list.
utf-8 encoding is not necessary for xoauth2, see commit
745847ba8eca27e981a50ad91b628bbce35bb0f3
Xiyue> Would be great if any Emacs developer can shed some light here.
`smtpmail-try-auth-method' will call `smtpmail-command-or-throw
process', which will return a list upon success, and string upon
failure. That decision is made by `smtpmail-ok-p', so thatʼs the
function you should check. Setting `smtpmail-debug-info' to t will get
you a trace buffer of the SMTP commands, that should help.
Robert
--
This bug report was last modified 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.