Re: Is there any 'xoauth2' login wrapper support for v5 of current getmail for ms o365 in the works?

Charles Cazabon <[email protected]> Fri, 12 Nov 2021 12:06:45 -0600
Newsgroups gmane.mail.getmail.user
Message-ID <YY6tNRuLHm/[email protected]>
Urs Rau <[email protected]> wrote:
> 
> So we are looking at our options of returning back to the regular and stable
> getmail v5. ;-) 

If you look at the docs of the most recent version (or the ones on my website)
there's a section about Python 3 and continuing to use Python 2 with getmail.

It's trivial.  Most most distributions, you just install the non-default
python-2.7 (or python27, or similar) package, then you can just download the
getmail tarball and run it, works perfectly.  You don't even have to install
it, though doing `python2 setup.py install` makes it so you don't have to
manually set the PYTHONPATH envvar.

All major Linux distributions - probably all distributions? - plus the BSDs
etc still have Python 2.7 packages available.

And at a worst case, you can run the Python2.7 appImage I point to in the
docs.

> But for that we would need to find a xoauth2 ‘plugin’ that supports ms o365
> with modern authentication as well as running on an old and end of life
> version of python.

I don't actually use xoauth2, but getmail has some support for it.  The
getmail-gmail-xoauth-tokens helper script it uses should still work?  I don't
know for sure as I don't use Gmail.

If you find xoauth2 support is broken, please report it.  No one else has
mentioned it IIRC.

> How far is the rewrite of getmail to use python v3 and higher? 

It's in progress.  That's as specific as I can get.  It's a major refactoring
and I don't have 10+ hours every week to devote to it as I did 20 years ago.

> Has anybody worked out a way to expand the xoauth2 functionality from Stefan
> Krah to work with ms o365 and not just gmail? 

No one has contributed support for it, I think.  The docs ask people who can
make it work with other providers provide that info to me for inclusion.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------