From 7b4c47ab4efdecfab760daeeeff5988429d8558c Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sat, 23 Apr 2016 16:38:29 +0200 Subject: [PATCH] offlineimap.conf: improve documentation for oauth2 Signed-off-by: Nicolas Sebrecht --- offlineimap.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/offlineimap.conf b/offlineimap.conf index 177d4ad..0a14689 100644 --- a/offlineimap.conf +++ b/offlineimap.conf @@ -804,8 +804,15 @@ remoteuser = username # python python/oauth2.py --user=YOUR_EMAIL --client_id=YOUR_CLIENT_ID # --client_secret=YOUR_CLIENT_SECRET --refresh_token=REFRESH_TOKEN # -#oauth2_refresh_token = REFRESH_TOKEN +# Access tokens have limited lifetimes. If you need access beyond the lifetime +# of a single access token, you should use a refresh token. A refresh token +# allows offlineimap to obtain new access tokens. +# +# If you want to use a refresh token, make sure you disabled/removed any +# oauth2_access_token option. +# #oauth2_access_token = ACCESS_TOKEN +#oauth2_refresh_token = REFRESH_TOKEN ########## Passwords