X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/c6f462fdedeacb046b60dcf8ae538fd52c1f1f78..f89214223bfa3b8f3f792c44c558d1c9cfebaf17:/mutt/hooks?ds=sidebyside diff --git a/mutt/hooks b/mutt/hooks index ee8b0c3..46fc2db 100644 --- a/mutt/hooks +++ b/mutt/hooks @@ -1,31 +1,30 @@ # 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 +reply-hook . source $my_config_dir/accounts/gmail +reply-hook "%L chakra" source $my_config_dir/accounts/chakra +reply-hook "%L ultrahaptics" source $my_config_dir/accounts/office365 -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 gmail source $my_config_dir/accounts/gmail +folder-hook gmail/chakra source $my_config_dir/accounts/chakra -folder-hook * "exec collapse-all" +folder-hook office365 source $my_config_dir/accounts/office365 + +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 inbox push '<delete-pattern>!~(~U|~F|~d<3m)<enter>' +folder-hook gmail/inbox push '<delete-pattern>!~(~U|~F|~d<3m)<enter>' # limit youtube to Unread and Flagged mails -folder-hook youtube push '<limit>=(=U|=F)<enter>' +folder-hook gmail/youtube push '<limit>=(=U|=F)<enter>' # delete other mails -folder-hook youtube push '<delete-pattern>!~(~U|~F)<enter>' +folder-hook gmail/youtube push '<delete-pattern>!~(~U|~F)<enter>' # open video in mpv set my_pipe_decode=$pipe_decode -folder-hook * bind index,pager m mail -folder-hook * bind pager <return> next-line -folder-hook * set pipe_decode=$my_pipe_decode -folder-hook youtube 'macro index,pager m "<pipe-message>~/.mutt/mutt_mpv<enter>"' -folder-hook youtube 'macro pager <return> "<pipe-message>~/.mutt/mutt_mpv<enter>"' +folder-hook .* bind index,pager m mail +folder-hook .* bind pager <return> next-line +folder-hook .* set pipe_decode=$my_pipe_decode +folder-hook youtube 'macro index,pager m "<pipe-message>$my_config_dir/mutt_mpv<enter>"' +folder-hook youtube 'macro pager <return> "<pipe-message>$my_config_dir/mutt_mpv<enter>"' folder-hook youtube 'set my_pipe_decode=$pipe_decode;set pipe_decode=yes'