If you use this proxy of mine then any IMAP (or POP/SMTP) client can be used with a “modern” email provider, regardless of whether it supports OAuth 2.0 natively:
https://github.com/simonrob/email-oauth2-proxy. No need for your client to know about OAuth at all.