>>>>> On Sun, 04 May 2025 16:43:28 -0700, Xiyue Deng said: Xiyue> I have only tested using Gnus with nnimap (see documentation at [1] or Xiyue> [2]) where you want to add `(nnimap-authenticator xoauth2)' to your Xiyue> `nnimap' settings. I haven't tested with `mail-sources', which seems to Xiyue> work differently compared to nnimap, and hence the implementation may be Xiyue> missing. I probably need to understand how `mail-sources' works and Xiyue> extend the plugin accordingly, which could take a while. Hi Xiyue, I implemented auth-source lookup for imap.el (patch below). Would there be any chance to see if you could extend your package to support xoauth2 for imap.el? It should be enough to add xoauth2 to `imap-authenticators', and `imap-xoauth2-auth-p' and `imap-xoauth2-auth' to `imap-authenticator-alist' (and their implementations, of course). Robert --