diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2026-05-02 18:43:44 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2026-05-02 18:43:44 +0800 |
| commit | 0396d7c718709fd89224e8d1832264ba501b8faa (patch) | |
| tree | 2982ed67d95d168a00f65693a85904a7a3ab371a /home | |
| parent | 1270145a7cca1132fafad287c9466500491136bc (diff) | |
neomutt change to current mail server then change to its inbox
Diffstat (limited to 'home')
| -rw-r--r-- | home/xyz/.config/neomutt/neomuttrc | 10 |
1 files changed, 8 insertions, 2 deletions
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 ";<save-message>=Trash<enter>" "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 '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail"<enter><change-folder>!<enter>' +# +# mutt-wizard uses <change-folder>!<enter>, not sure what that '!' means, I +# tested with `c` hotkey which seems is <change-folder> 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 <change-folder>=INBOX<enter> +# instead for now. +macro index,pager \'C '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail"<enter><change-folder>=INBOX<enter>' # Ib mail server -macro index,pager \'I '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail2"<enter><change-folder>!<enter>' +macro index,pager \'I '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail2"<enter><change-folder>=INBOX<enter>' # maybe useful for multiple accounts #macro index c "<change-folder>?<change-dir><home>^K=<enter>" |
