]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/hooks
nvim: enable other (non-scroll) animations again
[dotfiles.git] / mutt / hooks
index f704af22d2b5468319fc5c28ae19c7ebfbfce2a1..95212d6d2115f88cbd0deb792924fdbdef375a45 100644 (file)
@@ -1,28 +1,29 @@
 # vim: ft=muttrc
-reply-hook .                 source $my_config_dir/accounts/gmail
-reply-hook "%L chakra"       source $my_config_dir/accounts/chakra
-reply-hook "%L unimaas"      source $my_config_dir/accounts/unimaas
-reply-hook "%L cadscan"      source $my_config_dir/accounts/cadscan
-reply-hook "%L ultrahaptics" source $my_config_dir/accounts/office365
+folder-hook =mailfence     source $my_config_dir/accounts/mailfence
+folder-hook =fpp           source $my_config_dir/accounts/fpp
 
-folder-hook gmail         source $my_config_dir/accounts/gmail
-folder-hook gmail/chakra  source $my_config_dir/accounts/chakra
-folder-hook gmail/unimaas source $my_config_dir/accounts/unimaas
-folder-hook gmail/cadscan source $my_config_dir/accounts/cadscan
-
-folder-hook office365     source $my_config_dir/accounts/office365
+# 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
 folder-hook inbox push '<limit>=(=U|=F)<enter>'
-# delete mails older than 3 months
-folder-hook gmail/inbox push '<delete-pattern>!~(~U|~F|~d<3m)<enter>'
+# archive mails older than 3 months
+folder-hook mailfence/inbox push '<tag-pattern>!~(~U|~F|~d<3m)<enter><tag-prefix-cond><save-message>=mailfence/archive<enter><end-cond>'
 
 # limit youtube to Unread and Flagged mails
-folder-hook gmail/youtube push '<limit>=(=U|=F)<enter>'
+folder-hook mailfence/youtube push '<limit>=(=U|=F)<enter>'
 # delete other mails
-folder-hook gmail/youtube push '<delete-pattern>!~(~U|~F)<enter>'
+folder-hook mailfence/youtube push '<delete-pattern>!~(~U|~F)<enter>'
 
 # open video in mpv
 set my_pipe_decode=$pipe_decode