I have managed to get this implementation of the SASL XOAUTH2 method to work with Mutt -- thank you for your work! It would be nice if it was documented how it can be achieved. Feel free to assign this to me, and I'll try to come up with some tutorial.