From cc0185997cc212514f1d3b92f44ddc4dc87fb2f0 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 2 May 2026 18:43:44 +0800 Subject: neomutt change to current mail server then change to its inbox --- home/xyz/.config/neomutt/neomuttrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'home/xyz/.config/neomutt/neomuttrc') diff --git a/home/xyz/.config/neomutt/neomuttrc b/home/xyz/.config/neomutt/neomuttrc index afd5aa75..941e4c73 100644 --- a/home/xyz/.config/neomutt/neomuttrc +++ b/home/xyz/.config/neomutt/neomuttrc @@ -174,9 +174,15 @@ macro index,pager Mt ";=Trash" "move mail to trash" # here must specify full path of the file to source, else it will souce in the dir where neomutt is execute at # use vim-like uppercase marks # Ca mail server -macro index,pager \'C 'source "$XDG_CONFIG_HOME/neomutt/mail"!' +# +# mutt-wizard uses !, not sure what that '!' means, I +# tested with `c` hotkey which seems is and if I enter '!', it +# seems always go back ot ca mail server inbox. Need to learn more. I want it +# to change to current server inbox so I use =INBOX +# instead for now. +macro index,pager \'C 'source "$XDG_CONFIG_HOME/neomutt/mail"=INBOX' # Ib mail server -macro index,pager \'I 'source "$XDG_CONFIG_HOME/neomutt/mail2"!' +macro index,pager \'I 'source "$XDG_CONFIG_HOME/neomutt/mail2"=INBOX' # maybe useful for multiple accounts #macro index c "?^K=" -- cgit v1.3