Hello Josef. As this is the first post, a good and healthy 2023 to you and all the list members!
Josef Jurek wrote in <ca+8rerasivm3kdugyxonwu6+burrhtsp14qjneuwyx1zds-...@mail.gmail.com>: |Since GoogleMail introduced their new authentication |on May 30 2022, I have been unable to access GoogleMail |with s-nail-14.9.24. I was unable to access gmail for years without turning on "lesser secure apps", that you could is a surprise to me! |I have read the "OAuth 2.0" thread of Oct 2022 between |Steffen Nurpmeso and Stephen Isard. | |If I understand correctly, my two options to access |GoogleMail with s-nail are: | | (1) | Use GoogleMail's "App Password" option with 2-Step Verification. | This means that Google will have my cell-phone number. | | With this method, will I be able to use s-nail-14.9.24 | to connect to my GoogleMail account.? I was last i tried. (In the meantime i have switched all accounts to OAuth so i cannot re-verify.) | Is it true that this method is "relatively easy"? Unless Google starts beating you that you are using bad bad software that should not be used because it uses lesser secure authentication mechanisms, i would say yes. I was never contacted by cell phone (except the first confirmation SMS, if i recall correctly). | (2) | Use the s-nail-oauth-helper.py script as supplied by | Steffen N. in the "OAuth 2.0" thread of Oct 2022. That works. (In conjunction with the posted macros it "embeds nicely".) It requires a modern Python3 unfortunately. (I am still thinking whether, and if, how to embed it better without macros, as some packagers do not include the default nail.rc which will ship it.) |Is my understanding of these two options correct? Like Predrag said, "lesser secure apps" may still work as such. They started to turn it off quite frequently once i was still using it, so i had to go there via browser, and there were many "security notifications" or how that was named. There are other similar scripts, mutt has one. But i think our one gives the most user hints (with --action=manual and --action=template (for --provider=Google); BUG: you need a --resource= argument even for =manual). It includes the necessary OAuth credentials to use s-nail with Google, too, so you normally just fill in the login_hint= from the --action=template output with your Google address. ...Verified it works with my sdaoden[@]gmail.com just fine. The script (with some tweaks fixed) is now public at [1]. Please call back if it does not work just seamlessly for you! Ciao! [1] https://git.sdaoden.eu/browse/s-toolbox.git/plain/oauth-helper.py Note: user "moon", password "mars", as in: $ curl -u moon:mars --basic -O https://git.sdaoden.eu/browse/s-toolbox.git/plain/oauth-helper.py --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
