Macro to apply on current mailbox

Angel M Alganza ama at ugr.es
Mon Feb 15 21:16:33 UTC 2021


On Tue, Feb 16, 2021 at 12:00:35AM +0300, Oleg A. Mamontov wrote:

>The below approach works for me, probably it can be helpful somehow:
>
>.muttrc
>---
># the very first folder-hook
>folder-hook . "source ~/.mutt/on-folder-change.muttrc"
>---
>
># .mutt/on-folder-change.muttrc
>---
>set record = ^
>set record = `echo $record | sed 's#.*/##'`
>macro index,pager <esc>o "<sync-mailbox>:unset wait_key<enter><shell-escape>clear; mbsync full:$record<enter>:set wait_key<enter>" "sync current folder"
>---

Then what should I do to mbsync the current maildir?
Hitting ESC-o doesn't seem to do it.

Thanks,
Ángel


More information about the Mutt-users mailing list