Closed michaelcadilhac closed 1 year ago
Thank you very much for analyzing and fixing this problem!
A patch with the same effect is now in the main git repository (I just restructured it a little bit so that the code is as close as possible to the existing AUTH LOGIN etc, so that I don't have to think twice when reading the AUTH code in the future ;)
I also applied this change to msmtp.
Fantastic, thanks Martin!
I'm connecting to
outlook.office365.com
via POP3s, and it's rejecting my auth. I had used the OAuth2 script contributed to Mutt to generate my tokens, and the script itself has a "test" mode to see if the authentification is accepted over POP3s; it worked for them. Exploring further, they send the AUTH line in two steps:https://gitlab.com/muttmua/mutt/-/blob/master/contrib/mutt_oauth2.py#L393
That is, first
AUTH XOAUTH2\r\n
then the base64 payload. As far as I see, both syntaxes are OK from the standard point of view, so it might be due to a limit in the length of a line sent. In any case, I've simply changed the following in mpop, and it works perfectly now: