1 # $Id: muttrc.t-prot,v 1.9 2002/12/29 03:52:57 jochen Exp $
3 # CHANGES by Simon Ruderich:
4 # - use my helper script 'mutt-display-filter'
5 # - work on transparent terminals (default color setting)
8 # This all works only if you have mutt-1.3.12 or newer
9 # or if you use something like the pagerfilter patch
10 # (http://www.escape.de/users/tolot/mutt/).
11 set display_filter='mutt-display-filter'
13 # toggle TOFU protection with ESC-0 and ESC-1
14 macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off"
15 macro generic \e1 ":set display_filter='mutt-display-filter'\n" "Turn TOFU protection on"
17 # same in pager mode - ugly but what the hell...
18 macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off"
19 macro pager \e1 ":set display_filter='mutt-display-filter'; exec exit\n:exec display-message\n" "Turn TOFU protection on"
21 # highlight TOFU protection:
22 color body brightmagenta default "^\\[---.*"
23 color body green default "^#v[-+]"