From b6e290800088303734d6719e6ab3cb1be10a9f7e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:02:45 +0400 Subject: [PATCH] aaa --- config/emacs/.offlineimap.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)