emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED (magic?)] (was: [app password does not work (at the moment)])


From: Uwe Brauer
Subject: [SOLVED (magic?)] (was: [app password does not work (at the moment)])
Date: Thu, 02 Jun 2022 17:37:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

>>> "RP" == Robert Pluim <rpluim@gmail.com> writes:
>>>>>>> On Tue, 10 May 2022 08:29:11 +0200, Uwe Brauer <oub@mat.ucm.es> 

> So I tried to follow the instructions found in 
> https://support.google.com/mail/answer/185833?hl=en#

> I activate 2-step verification and I generate an app password. Now one
> remark and one question

>     1. The generated 16 char password is actually much *shorter* than my
>        imap password. This is supposed to enhance security 🙃

>     2. I am not sure I understand: do I have to generate such password
>        each time I want to access, via gnus my gmail account? I hope
>        not.

> Now I changed my authinfo entries to this 

> machine smtp.gmail.com login oub.oub.oub@gmail.com port 587 password  XXXX
> machine gmail login oub.oub.oub password XXXXX port imaps


> Where XXXX is the new app password freshly generated.


> I followed what you told me 

> ,----
> | 
> |     Uwe> If so, could you please share your configuration.
> | 
> |     Uwe> Or are you saying it is simply to use
> | 
> |     Uwe> (setq gnus-select-method (list 'nnnil "")) 
> |     Uwe> (setq gnus-secondary-select-methods nil)
> |     Uwe> (setq gnus-secondary-select-methods
> |     Uwe>       '(
> |     Uwe>    (nnimap "UCMgmail"
> |     Uwe>            (nnimap-address "imap.gmail.com")
> |     Uwe>            (nnimap-server-port 993)
> |     Uwe>                 ;; (nnimap-authinfo-file "~/.authinfo.gpg")
> |     Uwe>            (nnimap-authinfo-file "~/.authinfo")
> |     Uwe>            (nnimap-stream ssl)
> |     Uwe>                 ;;(nnimap-stream starttls)
> |     Uwe>                 (nnimap-fetch-partial-articles "text/")
> |     Uwe>            (nnir-search-engine imap))))
> | 
> |     Uwe> And put in authinfo my app password instead my «normal» one?
> | 
> | Yes
> | 
> | Robert
> `----

> Be it as it may, it *does not work* 

Well, you are not going to belive, it but after makeing the following minor 
change:

machine smtp.gmail.com login oub.oub.oub@gmail.com port 587 password  XXXXX
machine imap.gmail.com login oub.oub.oub password XXXX port imaps

After  *restarting emacs*, 

I can now again access my private gmail account, 

Sorry for the noise.

May I suggest to add a section to the authinfo info file, describing the
use of gmail app-passwords.

If you like I can give it a try (I would send you my proposal off list)
and you can decide for yourself.

Sometimes a novice (like me concerning gmail app passwords) might mention
things that seem trivial to the expert.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]