plobbes / mail-imapclient

Mail::IMAPClient is a Perl module that provides an interface for communicating with an IMAP server as an IMAP client.
4 stars 3 forks source link

support for OAUTH2? #3

Open iamdrscott opened 3 years ago

iamdrscott commented 3 years ago

It seems the IMAP service at outlook.office365.com insists on OAUTH2 authentication. I don't see a way to do that with IMAPClient. Is OAUTH2 supported, and I just don't see how? Is it feasible to add OAUTH2 support?

plobbes commented 3 years ago

Does this help you at all?

https://gist.github.com/mugifly/4187031

I've not tried it, but perhaps it gets you down the path you're trying to go down?

Phil

iamdrscott commented 3 years ago

That looks like it ought to work. It's certainly a workable staring point. Many thanks!