X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=mail%2Fmutt%2Ft-prot;fp=mail%2Fmutt%2Ft-prot;h=d3f4f4641756d25fc5aaab61a9b6d94570439b2d;hp=0000000000000000000000000000000000000000;hb=214dc48c13fb068452efcb832809bddf6c5601a5;hpb=7944bc5ce0d42f27738cc087ece4edbba02d0747 diff --git a/mail/mutt/t-prot b/mail/mutt/t-prot new file mode 100644 index 0000000..d3f4f46 --- /dev/null +++ b/mail/mutt/t-prot @@ -0,0 +1,25 @@ +# $Id: muttrc.t-prot,v 1.9 2002/12/29 03:52:57 jochen Exp $ + +# CHANGES by Simon Ruderich: +# - use my helper script 'mutt-display-filter' +# - work on transparent terminals (default color setting) + + +# This all works only if you have mutt-1.3.12 or newer +# or if you use something like the pagerfilter patch +# (http://www.escape.de/users/tolot/mutt/). +set display_filter='mutt-display-filter' + +# toggle TOFU protection with ESC-0 and ESC-1 +macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off" +macro generic \e1 ":set display_filter='mutt-display-filter'\n" "Turn TOFU protection on" + +# same in pager mode - ugly but what the hell... +macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off" +macro pager \e1 ":set display_filter='mutt-display-filter'; exec exit\n:exec display-message\n" "Turn TOFU protection on" + +# highlight TOFU protection: +color body brightmagenta default "^\\[---.*" +color body green default "^#v[-+]" + +# vim: ft=muttrc