X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/c3a03e540dae7adafed0124b1a83c63436b597d7..c6f462fdedeacb046b60dcf8ae538fd52c1f1f78:/mutt/hooks?ds=inline diff --git a/mutt/hooks b/mutt/hooks index fa323c2..ee8b0c3 100644 --- a/mutt/hooks +++ b/mutt/hooks @@ -1,6 +1,31 @@ # vim: ft=muttrc +reply-hook . source ~/.mutt/accounts/gmail +reply-hook "%L chakra" source ~/.mutt/accounts/chakra +reply-hook "%L unimaas" source ~/.mutt/accounts/unimaas +reply-hook "%L cadscan" source ~/.mutt/accounts/cadscan + folder-hook . source ~/.mutt/accounts/gmail folder-hook chakra source ~/.mutt/accounts/chakra folder-hook unimaas source ~/.mutt/accounts/unimaas +folder-hook cadscan source ~/.mutt/accounts/cadscan folder-hook * "exec collapse-all" + +# limit inbox to Unread and Flagged mails +folder-hook inbox push '=(=U|=F)' +# delete mails older than 3 months +folder-hook inbox push '!~(~U|~F|~d<3m)' + +# limit youtube to Unread and Flagged mails +folder-hook youtube push '=(=U|=F)' +# delete other mails +folder-hook youtube push '!~(~U|~F)' + +# open video in mpv +set my_pipe_decode=$pipe_decode +folder-hook * bind index,pager m mail +folder-hook * bind pager next-line +folder-hook * set pipe_decode=$my_pipe_decode +folder-hook youtube 'macro index,pager m "~/.mutt/mutt_mpv"' +folder-hook youtube 'macro pager "~/.mutt/mutt_mpv"' +folder-hook youtube 'set my_pipe_decode=$pipe_decode;set pipe_decode=yes'