From: Samir Benmendil Date: Sun, 17 Jan 2021 22:30:10 +0000 (+0000) Subject: mutt: fetch mail with ^L X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b76559a2a0d04fc7dd442936bccff0b7bf54d424?ds=sidebyside mutt: fetch mail with ^L --- diff --git a/mutt/hooks b/mutt/hooks index 734d081..a54f8be 100644 --- a/mutt/hooks +++ b/mutt/hooks @@ -2,6 +2,16 @@ folder-hook =mailfence source $my_config_dir/accounts/mailfence folder-hook =fpp source $my_config_dir/accounts/fpp +# fetch mail +# by default sync all channels +folder-hook .* setenv MBSYNC_CHANNEL -a +folder-hook =mailfence/inbox$ setenv MBSYNC_CHANNEL mailfence/inbox +folder-hook =mailfence/spam$ setenv MBSYNC_CHANNEL mailfence/spam +macro index \Cl "\ +mbsync -c $XDG_CONFIG_HOME/mbsync/config $MBSYNC_CHANNEL\ +" \ +"retrieve mail from server" + folder-hook .* "exec collapse-all" # limit inbox to Unread and Flagged mails