I can't for the life of me tell: Is Office 365 "multifactor authentication" the same as OAUTH2?
I've been trying to find a fetchmail-like thing that supports OAUTH2 so google will stop badgering me about using an insecure access, and there is a python thing called "getmail" which, in theory, has a plugin for doing OAUTH2 access.
I haven't tried to set it up yet, so I don't know if it works to make gmail happy or not. (I keep seeing references to fetchmail 7 having support for it, but I can't find any pointers to even a beta of fetchmail 7).