]> git.rmz.io Git - dotfiles.git/commitdiff
mutt: fetch mail with ^L
authorSamir Benmendil <me@rmz.io>
Sun, 17 Jan 2021 22:30:10 +0000 (22:30 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Jan 2021 22:31:08 +0000 (22:31 +0000)
mutt/hooks

index 734d081ecadc4268c601e8fc0ea53cf9552f12cc..a54f8be9edaaab4850bc2092e1e1ee90be2d9fb8 100644 (file)
@@ -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 "\
+<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