config/emacs: I DID IT HHAAHAHUDHUWAHFUIOWAHGUIO

This commit is contained in:
Sakooooo 2024-09-24 15:19:17 +04:00
parent 2095df4129
commit dead68f5da
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 1 additions and 10 deletions

View file

@ -34,14 +34,6 @@ def get_client_secret(account):
return re.search(rb"client_secret: (.*)", cmd, flags=0).group(1)
def get_client_token(account):
cmd = check_output("pass " + account, shell=True)
output = re.search("client_token: (.*)", cmd.decode(), flags=0).group(1)
return output
def get_client_refresh_token(account):
cmd = check_output("pass " + account, shell=True)

View file

@ -38,7 +38,6 @@ remoteport = 993
auth_mechanisms = XOAUTH2
oauth2_request_url = https://login.microsoftonline.com/common/oauth2/v2.0/token
oauth2_client_id = 9e5f94bc-e8a4-4e73-b8be-63364c29d753
# oauth2_client_secret = ""
oauth2_client_secret =
oauth2_refresh_token_eval = get_client_refresh_token("Microsoft")
oauth2_access_token_eval = get_client_token("Microsoft")
folderfilter = lambda folder: not folder.startswith('Calendar') and not folder.startswith('Contacts')