getmail's 'use_xoauth2' for outlook.office365.com
Thomas Schwinge <[email protected]> Tue, 10 Jan 2023 17:52:26 +0100
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! There have been some indications/messages already, but I too wanted to note that getmail's 'use_xoauth2', <https://pyropus.ca./software/getmail/configuration.html#retriever-paramete= rs>, also does work for outlook.office365.com, with 'password_command' pointing to a helper program that spits out the desired "token". As I had already found such a helper program, provided by a co-worker for use with OfflineIMAP, msmtp, I gave that one a try, and it works fine. That is, I'm not using Stefan Krah's 'getmail-gmail-xoauth-tokens' helper program, <https://www.bytereef.org/howto/oauth2/getmail.html>, but instead using another such helper program, that conveniently happens to implement the same program interface. (Maybe not quite surprising, given what those do -- simplicity wins, I guess!) :-) The documentation currently states: > This is currently only supported with Gmail; if anyone extends this to su= pport other IMAP providers, please let me know so I can include such suppor= t in getmail. So maybe generalize that; is generally expected to work? And, note the 'getmail-gmail-xoauth-tokens' helper program as "for example"? (This is not meant to "demote" Stefan's original work, of course!) Gr=C3=BC=C3=9Fe Thomas