diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-02-20 01:28:36 -0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-02-20 01:29:42 -0800 |
commit | 5405684c78678bcc66c3892864ba7437fd00461d (patch) | |
tree | 7956f4d39170232ec52a9ef4fa9ab6d0eaa42e78 /home | |
parent | 581ed6fd1a90c52fcbd478fe4f65713aa9008497 (diff) |
fix: neomutt change mailbox fail because I did not specify full path to source
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.config/neomutt/neomuttrc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/home/xyz/.config/neomutt/neomuttrc b/home/xyz/.config/neomutt/neomuttrc index 6e59f808..461f24e6 100644 --- a/home/xyz/.config/neomutt/neomuttrc +++ b/home/xyz/.config/neomutt/neomuttrc @@ -172,9 +172,10 @@ macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk" macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent" macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash" # not sure about what <check-stats> is for and if it is useful or not -#macro index,pager ia '<sync-mailbox><enter-command>source mail<enter><change-folder>!<enter>;<check-stats>' -macro index,pager ia '<sync-mailbox><enter-command>source mail<enter><change-folder>!<enter>' -macro index,pager ib '<sync-mailbox><enter-command>source mail2<enter><change-folder>!<enter>' +# here must specify full path of the file to source, else it will souce in the dir where neomutt is execute at +#macro index,pager ia '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail"<enter><change-folder>!<enter>;<check-stats>' +macro index,pager ia '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail"<enter><change-folder>!<enter>' +macro index,pager ib '<sync-mailbox><enter-command>source "$XDG_CONFIG_HOME/neomutt/mail2"<enter><change-folder>!<enter>' # maybe useful for multiple accounts #macro index c "<change-folder>?<change-dir><home>^K=<enter>" |