On Thu, Jan 27, 2022 at 10:46:53PM +0300, Oleg A. Mamontov wrote: > I successfully use the below approach for syncing current folder with > the same on IMAP: > --- > folder-hook . "source ~/.mutt/on-folder-change.muttrc" > --- > > where on-folder-change.muttrc is: > --- > set record = ^ > set my_folder = `echo $record | sed 's#.*/##'` > macro index,pager <esc>o ":unset wait_key<enter><shell-escape>clear; printf > '# syncing =$my_folder\\n\\n'; mbsync $my_folder<enter>:set wait_key<enter>" > "sync current folder" > --- > > Hope this helps. > Yes, thank you. I have another possible approach now but the above could well be a better way.
-- Chris Green
