dotfiles/mutt/.mutt/accounts.conf
Sanchayan Maity 57ef401a11
mutt: accounts: Add missing message hooks
We still will probably get mails from sanchayan@domain.
Add a message hook to select the correct account for
the same.
2024-11-16 12:39:21 +05:30

26 lines
1.7 KiB
Text

# vim: set ft=muttrc
# Load the default account information
source ~/.mutt/accounts/sanchayan-net
# Create some macros to switch between accounts
macro generic,index,pager 1 '<enter-command>source ~/.mutt/accounts/sanchayan-net<Enter><change-folder>=sanchayan-net/Inbox/<Enter>'
macro generic,index,pager 2 '<enter-command>source ~/.mutt/accounts/sanchayan<Enter><change-folder>=sanchayan/Inbox/<Enter>'
macro generic,index,pager 3 '<enter-command>source ~/.mutt/accounts/asymptotic<Enter><change-folder>=asymptotic/Inbox/<Enter>'
macro generic,index,pager 4 '<enter-command>source ~/.mutt/accounts/fastmail<Enter><change-folder>=fastmail/Inbox/<Enter>'
macro generic,index,pager 5 '<enter-command>source ~/.mutt/accounts/sanchayan-com<Enter><change-folder>=sanchayan-com/Inbox/<Enter>'
# Default to my normal account
message-hook '~t .*' 'source ~/.mutt/accounts/sanchayan-net'
# Move emails to the trash folder when deleting, unless you are in the trash folder
folder-hook trash$ unset trash
# Add some message hooks to automatically select the proper account when replying to an email
message-hook '~t ^sanchayan@sanchayanmaity\.net$' 'source ~/.mutt/accounts/sanchayan-net'
message-hook '~t ^sanchayan@sanchayanmaity\.com$' 'source ~/.mutt/accounts/sanchayan-com'
message-hook '~t ^me@sanchayanmaity\.net$' 'source ~/.mutt/accounts/sanchayan-net'
message-hook '~t ^me@sanchayanmaity\.com$' 'source ~/.mutt/accounts/sanchayan-com'
message-hook '~t ^sanchayan@asymptotic\.io$' 'source ~/.mutt/accounts/asymptotic'
message-hook '~t ^maitysanchayan@gmail\.com$' 'source ~/.mutt/accounts/sanchayan'
message-hook '~t ^maitysanchayan@fastmail\.com$' 'source ~/.mutt/accounts/fastmail'