Does anyone still use Outlook.com for e-mail?
Because I still do for some things and now that MS forced OAuth2 on everyone, something has to be done to keep fetchmail working.
AFAIK there is a patch that adds experimental support to fetchmail directly, but from what I read about it, it's still quite flaky.
I wonder if this thing would get it done: https://github.com/simonrob/email-oauth2-proxy ?
OMG, this thing indeed works! At least for outlook.com it does.
Client ID and client secret can be snatched from FairMail here: https://github.com/M66B/FairEmail/blob/master/app/src/main/res/xml/providers.xml
Oh, and it only accepts unencrypted connections to itself — it's supposed to run on the same machine, shouldn't be a problem, but you have to set sslproto to '' in .fetchmailrc to force it.