]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - mutt/t-prot
use set -eu
[config/dotfiles.git] / mutt / t-prot
1 # $Id: muttrc.t-prot,v 1.9 2002/12/29 03:52:57 jochen Exp $
2
3 # CHANGES by Simon Ruderich:
4 # - use my helper script 'mutt-display-filter'
5 # - work on transparent terminals (default color setting)
6
7
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'
12
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"
16
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"
20
21 # highlight TOFU protection:
22 color body brightmagenta default "^\\[---.*"
23 color body green         default "^#v[-+]"
24
25 # vim: ft=muttrc