On Mon, 7 Mar 2022, Roderick wrote:
(1) I added /auth=xoauth2 also on the smtp server:
smtp-server=smtp.gmail.com:587/tls/auth=xoauth2/user=xxx
Is it OK?
Dear Rodrigo,
According to
https://alpine.x10host.com/alpine/alpine-info/misc/AuthorizeAlpineGmail.html the best setting is
smtp-server=smtp.gmail.com/ssl/user=
[email protected]/auth=xoauth2
but the one you mentioned should also work.
(2) Can I run multiple instances of alpine in the same computer
with the same Configuration file (and same same ID and Key)?
Yes. This is the same question as asking if you can login multiple times
with the same username/password, and since Gmail allows that, then this is allowed too.
(3) Can I run different instances of alpine on different computers
with the same Configuration file (and same same ID and Key)?
Yes. You can use the same client-id and client-secret to login from
anywhere in the world and from any device that supports XOAUTH2. However,
each device will get its own refresh token and access token.
(4) ID and Key are saved in the configuration file.
Where does alpine save the temporary tokens?
In the password file, or in a Mac in the keychain, or in Windows in the
Windows Credentials. There are two things that are saved. A token called
the refresh token, which is valid for life, and another called the access
token which only lasts for a small amount of time, an hour typically. Both
are saved locally in your computer.
Say you went to sleep, closed Alpine and came back the next day. When you
open Alpine for the first time Alpine will see that it has been over an
hour since the access token was generated, so it wil not use it and will
use the refresh token to get a new access token. With that access token
alpine will login to your account. Now, if you were to open another
session, say 15 minutes later, in the same computer, then Alpine would
notice that the access token is still valid, and would create a new
session with that access-token and it would not try to get a new
access-token from the server.
Does this answer the questions?
--
Eduardo
https://tinyurl.com/yc377wlh (web)
http://repo.or.cz/alpine.git (Git)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)