diff --git a/config/emacs/.offlineimap.py b/config/emacs/.offlineimap.py index dfc61682..4257ebb6 100644 --- a/config/emacs/.offlineimap.py +++ b/config/emacs/.offlineimap.py @@ -38,3 +38,9 @@ def get_client_token(account): cmd = check_output("pass " + account, shell=True) return re.search(rb"client_token: (.*)", cmd, flags=0).group(1) + + +def get_client_token(account): + cmd = check_output("pass " + account, shell=True) + + return re.search(rb"client_refresh_token: (.*)", cmd, flags=0).group(1)