aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/files')
-rw-r--r--tw/home/files/aerc/accounts.conf17
1 files changed, 11 insertions, 6 deletions
diff --git a/tw/home/files/aerc/accounts.conf b/tw/home/files/aerc/accounts.conf
index 85a6c92f..16b9ac76 100644
--- a/tw/home/files/aerc/accounts.conf
+++ b/tw/home/files/aerc/accounts.conf
@@ -1,12 +1,17 @@
[CERN]
-source = imaps+insecure://twilken@imap.cern.ch
-outgoing = smtp+login://twilken@smtp.cern.ch
-source-cred-cmd = pass cern/sso | head -1
-outgoing-cred-cmd = pass cern/sso | head -1
+source = imaps+xoauth2://timo.wilken%40cern.ch@outlook.office365.com
+outgoing = smtp+xoauth2://timo.wilken%40cern.ch@smtp.office365.com
+smtp-starttls = true
+# To authorize for the first time:
+# mutt_oauth2.py ~/.local/share/aerc/twilken.tokens --authorize --authflow authcode --provider microsoft \
+# --email timo.wilken@cern.ch --client-id 9e5f94bc-e8a4-4e73-b8be-63364c29d753 --client-secret '' \
+# --encryption-pipe 'gpg --encrypt --recipient C2249BBE5E8761C943A0CFA1B7B3914BF63ACD7C'
+# Confirm empty client secret. When done, copy-paste ?code= value from final URL to the command-line.
+source-cred-cmd = mutt_oauth2.py ~/.local/share/aerc/twilken.tokens
+outgoing-cred-cmd = mutt_oauth2.py ~/.local/share/aerc/twilken.tokens
default = INBOX
-smtp-starttls = yes
from = Timo Wilken <timo.wilken@cern.ch>
aliases = twilken@cern.ch
-copy-to = Sent
+copy-to = Sent Items
postpone = Drafts
cache-headers = true