aboutsummaryrefslogtreecommitdiff
path: root/muttrc
diff options
context:
space:
mode:
Diffstat (limited to 'muttrc')
-rw-r--r--muttrc21
1 files changed, 12 insertions, 9 deletions
diff --git a/muttrc b/muttrc
index 7a57090a..3a62ab63 100644
--- a/muttrc
+++ b/muttrc
@@ -71,8 +71,7 @@ account-hook "$my_mythic" 'set smtp_pass = `pass www/mythic-beasts/email/timo |
account-hook "$my_mythic" 'set spool_file = +INBOX'
account-hook "$my_mythic" 'set postponed = +Drafts'
account-hook "$my_mythic" 'set record = +Sent'
-account-hook "$my_mythic" 'reset ssl_use_tlsv1'
-account-hook "$my_mythic" 'reset ssl_use_tlsv1_1'
+account-hook "$my_mythic" 'reset ssl_use_tlsv1 ssl_use_tlsv1_1 imap_authenticators imap_oauth_refresh_command'
set my_cern = "imaps://imap.cern.ch/"
account-hook "$my_cern" 'set folder = "$my_cern"'
@@ -83,9 +82,10 @@ account-hook "$my_cern" 'set imap_pass = `pass cern/sso | head -1`'
account-hook "$my_cern" 'set smtp_pass = `pass cern/sso | head -1`'
account-hook "$my_cern" 'set spool_file = +INBOX'
account-hook "$my_cern" 'set postponed = +Drafts'
-account-hook "$my_cern" 'set record = +Sent'
+account-hook "$my_cern" 'set record = "+Sent Items"'
account-hook "$my_cern" 'set ssl_use_tlsv1 = yes' # imap.cern.ch needs this; ...
account-hook "$my_cern" 'set ssl_use_tlsv1_1 = yes' # ...make sure to reset for other accounts!
+account-hook "$my_cern" 'reset imap_authenticators imap_oauth_refresh_command'
set my_gmail = "imaps://imap.gmail.com/"
account-hook "$my_gmail" 'set folder = "$my_gmail"'
@@ -97,8 +97,7 @@ account-hook "$my_gmail" 'set smtp_pass = `pass www/google/app-passwords/mutt |
account-hook "$my_gmail" 'set spool_file = +INBOX'
account-hook "$my_gmail" 'set postponed = "+[Gmail]/Drafts"'
account-hook "$my_gmail" 'set record = "+[Gmail]/Sent Mail"'
-account-hook "$my_gmail" 'reset ssl_use_tlsv1'
-account-hook "$my_gmail" 'reset ssl_use_tlsv1_1'
+account-hook "$my_gmail" 'reset ssl_use_tlsv1 ssl_use_tlsv1_1 imap_authenticators imap_oauth_refresh_command'
# ExOl needs OAUTH now!
# https://neomutt.org/guide/optionalfeatures.html#oauth
@@ -112,8 +111,10 @@ account-hook "$my_cantab" 'set smtp_pass = `pass cambridge/raven | head -1`'
account-hook "$my_cantab" 'set spool_file = +INBOX'
account-hook "$my_cantab" 'set postponed = +Drafts'
account-hook "$my_cantab" 'set record = +Sent'
-account-hook "$my_cantab" 'reset ssl_use_tlsv1'
-account-hook "$my_cantab" 'reset ssl_use_tlsv1_1'
+account-hook "$my_cantab" 'reset ssl_use_tlsv1 ssl_use_tlsv1_1'
+account-hook "$my_cantab" 'set imap_authenticators = "oauthbearer:xoauth2"'
+# TODO: replace YOUR_GPG_IDENTITY string in mutt_oauth2.py.
+account-hook "$my_cantab" 'set imap_oauth_refresh_command = "python3 ~/.guix-home/profile/share/doc/neomutt/oauth2/mutt_oauth2.py ~/.local/share/neomutt/cantab.gpg"'
set my_outlook = "imaps://timo_wilken@live.co.uk@outlook.office365.com/"
account-hook "$my_outlook" 'set folder = "$my_outlook"'
@@ -125,8 +126,10 @@ account-hook "$my_outlook" 'set smtp_pass = `pass www/microsoft | head -1`'
account-hook "$my_outlook" 'set spool_file = +INBOX'
account-hook "$my_outlook" 'set postponed = +Drafts'
account-hook "$my_outlook" 'set record = +Sent'
-account-hook "$my_outlook" 'reset ssl_use_tlsv1'
-account-hook "$my_outlook" 'reset ssl_use_tlsv1_1'
+account-hook "$my_outlook" 'reset ssl_use_tlsv1 ssl_use_tlsv1_1'
+account-hook "$my_cantab" 'set imap_authenticators = "oauthbearer:xoauth2"'
+# TODO: replace YOUR_GPG_IDENTITY string in mutt_oauth2.py.
+account-hook "$my_cantab" 'set imap_oauth_refresh_command = "python3 ~/.guix-home/profile/share/doc/neomutt/oauth2/mutt_oauth2.py ~/.local/share/neomutt/outlook.gpg"'
macro index,pager gm "<sync-mailbox><enter-command>set folder=$my_mythic<enter><change-folder>+INBOX<enter>" "Switch to Mythic Beasts account"
macro index,pager gG "<sync-mailbox><enter-command>set folder=$my_gmail<enter><change-folder>+INBOX<enter>" "Switch to Gmail account"