From 3e9777331c3d01955e1ab9eea0d9cb155c60ce7b Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 15 Feb 2023 20:38:00 +0100 Subject: Move muttrc account change commands out of hook --- tw/home/files/muttrc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'tw/home/files') diff --git a/tw/home/files/muttrc b/tw/home/files/muttrc index 67b9f507..6b485636 100644 --- a/tw/home/files/muttrc +++ b/tw/home/files/muttrc @@ -79,7 +79,6 @@ alternative_order text/plain text/enriched text/html text image auto_view text/html text/calendar text/x-diff text/x-patch image/jpeg image/png set my_mythic = "imaps://oncilla.mythic-beasts.com/" -account-hook "$my_mythic" 'unmailboxes *' account-hook "$my_mythic" 'set folder = "$my_mythic"' account-hook "$my_mythic" 'set smtp_url = "smtps://smtp-auth.mythic-beasts.com"' account-hook "$my_mythic" 'set imap_user = "timo@twilken.net"' @@ -94,7 +93,6 @@ account-hook "$my_mythic" 'set from = "$imap_user"' account-hook "$my_mythic" 'reset ssl_use_tlsv1 ssl_use_tlsv1_1 imap_authenticators smtp_authenticators imap_oauth_refresh_command smtp_oauth_refresh_command' set my_cern = "imaps://imap.cern.ch/" -account-hook "$my_cern" 'unmailboxes *' account-hook "$my_cern" 'set folder = "$my_cern"' account-hook "$my_cern" 'set smtp_url = "smtp://smtp.cern.ch:587"' # we need to rely on STARTTLS account-hook "$my_cern" 'set imap_user = "twilken"' @@ -112,7 +110,6 @@ account-hook "$my_cern" 'set ssl_use_tlsv1 ssl_use_tlsv1_1' # imap.cern.ch nee account-hook "$my_cern" 'reset imap_authenticators imap_oauth_refresh_command smtp_oauth_refresh_command' set my_gmail = "imaps://imap.gmail.com/" -account-hook "$my_gmail" 'unmailboxes *' account-hook "$my_gmail" 'set folder = "$my_gmail"' account-hook "$my_gmail" 'set smtp_url = "smtps://smtp.gmail.com"' account-hook "$my_gmail" 'set imap_user = "timo.21.wilken@gmail.com"' @@ -129,7 +126,6 @@ account-hook "$my_gmail" 'reset ssl_use_tlsv1 ssl_use_tlsv1_1 imap_authenticator # ExOl needs OAUTH now! # https://neomutt.org/guide/optionalfeatures.html#oauth set my_cantab = "imaps://tw466@cantab.ac.uk@outlook.office365.com/" -account-hook "$my_cantab" 'unmailboxes *' account-hook "$my_cantab" 'set folder = "$my_cantab"' account-hook "$my_cantab" 'set smtp_url = "smtp://smtp-mail.outlook.com:587"' account-hook "$my_cantab" 'set imap_user = "tw466@cantab.ac.uk"' @@ -147,7 +143,6 @@ account-hook "$my_cantab" 'set imap_oauth_refresh_command = "mutt_oauth2.py --en account-hook "$my_cantab" 'set smtp_oauth_refresh_command = $imap_oauth_refresh_command' set my_outlook = "imaps://timo_wilken@live.co.uk@outlook.office365.com/" -account-hook "$my_outlook" 'unmailboxes *' account-hook "$my_outlook" 'set folder = "$my_outlook"' account-hook "$my_outlook" 'set smtp_url = "smtp://smtp-mail.outlook.com:587"' account-hook "$my_outlook" 'set imap_user = "timo_wilken@live.co.uk"' @@ -164,11 +159,11 @@ account-hook "$my_outlook" 'set imap_authenticators=xoauth2 smtp_authenticators= account-hook "$my_outlook" 'set imap_oauth_refresh_command = "mutt_oauth2.py --encryption-pipe=\"gpg --encrypt --recipient timo@twilken.net\" $XDG_DATA_HOME/neomutt/outlook.gpg"' account-hook "$my_outlook" 'set smtp_oauth_refresh_command = $imap_oauth_refresh_command' -macro index,pager gm "set folder=$my_mythic+INBOX" "Switch to Mythic Beasts account" -macro index,pager gG "set folder=$my_gmail+INBOX" "Switch to Gmail account" -macro index,pager gw "set folder=$my_cern+INBOX" "Switch to CERN account" -macro index,pager gc "set folder=$my_cantab+INBOX" "Switch to Cantab account" -macro index,pager go "set folder=$my_outlook+INBOX" "Switch to Outlook account" +macro index,pager gm "unmailboxes *unalternates *set folder=$my_mythic+INBOX" "Switch to Mythic Beasts account" +macro index,pager gG "unmailboxes *unalternates *set folder=$my_gmail+INBOX" "Switch to Gmail account" +macro index,pager gw "unmailboxes *unalternates *set folder=$my_cern+INBOX" "Switch to CERN account" +macro index,pager gc "unmailboxes *unalternates *set folder=$my_cantab+INBOX" "Switch to Cantab account" +macro index,pager go "unmailboxes *unalternates *set folder=$my_outlook+INBOX" "Switch to Outlook account" # Open the Mythic inbox by default. set folder = "$my_mythic" -- cgit v1.2.3