]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/hooks
nvim: enable other (non-scroll) animations again
[dotfiles.git] / mutt / hooks
index 734d081ecadc4268c601e8fc0ea53cf9552f12cc..95212d6d2115f88cbd0deb792924fdbdef375a45 100644 (file)
@@ -2,6 +2,17 @@
 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
+folder-hook =fpp/inbox$         setenv MBSYNC_CHANNEL fpp/inbox
+macro index \Cl "\
+<shell-escape>mbsync -c $XDG_CONFIG_HOME/mbsync/config $MBSYNC_CHANNEL<enter>\
+<sync-mailbox><refresh>" \
+"retrieve mail from server"
+
 folder-hook .* "exec collapse-all"
 
 # limit inbox to Unread and Flagged mails