On Mon, 12 Sep 2022, Steffen Nurpmeso steffen-at-sdaoden.eu |s-nail| wrote:

...
|s-nail -X 'call update_access_token' -A oauth
|
|The initial call to update_access_token uses the refresh token in your
|~/.s-nail-tokenfile to get an access token that s-nail treats as a
|password for logging in.  The settings of on-main-loop-tick and

Why do you need this initial call?  Ah, you directly log into IMAP
and use that as your base, hmhm, we really deal bad with that.
Call it from within the account?

You are right, calling it at the beginning of the account definition works. I didn't do it that way because I wasn't certain that s-nail would set the password before attempting the imap login. It makes sense that the lines in the account definition would get executed in order, but I wasn't sure.

Stephen Isard

Reply via email to