Created attachment 2283 [details] Patch to split AUTH XOAUTH over two lines I recently needed to use Microsoft Exchange, and followed the very helpful instructions at https://www.claws-mail.org/faq/index.php/Oauth2 . To get POP to work with their servers, in a addition to patching bug 4587, I needed to adjust the authentication command; as noted by https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth , the base64 encoded string following AUTH XOAUTH2 needs to be put on a separate line. I've attached the patch that I use here in case anyone else has the same problem. Note: it will break with servers that want single line AUTH XOAUTH2 requests.
Fixed by 15f792b7ecc27a055afe119bb3caf812fdeada79.