Can anybody explain how to configure Mew properly to use Oauth2 to connect to Gmail?

52 views
Skip to first unread message

T. Kurt Bond

unread,
Aug 12, 2024, 3:03:20 PM8/12/24
to mew...@googlegroups.com
Its been some time since I've tried using Mew with Gmail, and it
complains about Oauth2 failure when I tried it.

Can anybody explain how to configure Mew properly to use Oauth2 to
connect to Gmail? What do I need to do on the Gmail side to enable
Oauth2 for Mew?

Can you set Mew to NOT use Oauth2, and just use passwords? App
passwords work with Wanderlust and Gmail; can I set Mew up to do that.

I've used Mew occasionally for years, and would like to continue doing
so.

--
T. Kurt Bond, tkur...@gmail.com, tkurtbond.github.io, consp.org, & tkb.tx0.org

Kazu Yamamoto

unread,
Aug 29, 2024, 12:59:56 AM8/29/24
to tkur...@gmail.com, mew...@googlegroups.com
Hi,

> Its been some time since I've tried using Mew with Gmail, and it
> complains about Oauth2 failure when I tried it.
>
> Can anybody explain how to configure Mew properly to use Oauth2 to
> connect to Gmail? What do I need to do on the Gmail side to enable
> Oauth2 for Mew?
>
> Can you set Mew to NOT use Oauth2, and just use passwords? App
> passwords work with Wanderlust and Gmail; can I set Mew up to do that.
>
> I've used Mew occasionally for years, and would like to continue doing
> so.

You can use gmail with the github version of Mew.

I gave up on asking Google cloud to publish a public client for Mew.
So, You should obtain a client ID and a client secret by yourself.
For the redirect URL, please use "http://localhost:8080".

After obtaining those, set the following variables:

(setq mew-oauth2-client-id "XXXXXXXXXXXXXX.apps.googleusercontent.com")
(setq mew-oauth2-client-secret "YYYYYYYYYYYY")

Translating the following message would be useful:
https://groups.google.com/g/mew-ja/c/dvW41lZvs3s

--Kazu


Reply all
Reply to author
Forward
0 new messages