mbsync now uses SASL for all advanced authentication, so i'll simply refer the task to an appropriate SASL module: https://github.com/sweetums/SASL-OAuth
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mbsync now uses SASL for all advanced authentication, so i'll simply refer the task to an appropriate SASL module: https://github.com/sweetums/SASL-OAuth