]> git.deb.at Git - pkg/t-prot.git/blob - contrib/muttrc.t-prot
Imported Upstream version 1.49
[pkg/t-prot.git] / contrib / muttrc.t-prot
1 # $Id: muttrc.t-prot,v 1.9 2002/12/29 03:52:57 jochen Exp $
2
3 # This all works only if you have mutt-1.3.12 or newer
4 # or if you use something like the pagerfilter patch
5 # (http://www.escape.de/users/tolot/mutt/).
6 set display_filter='t-prot -acelmtS -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters'
7
8 # toggle TOFU protection with ESC-0 and ESC-1
9 macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off"
10 macro generic \e1 ":set display_filter='t-prot -acelmtS -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters'\n" "Turn TOFU protection on"
11
12 # same in pager mode - ugly but what the hell...
13 macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off"
14 macro pager \e1 ":set display_filter='t-prot -acelmtS -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters'; exec exit\n:exec display-message\n" "Turn TOFU protection on"
15
16 # highlight TOFU protection:
17 color body      brightmagenta   black   "^\\[---.*"
18 color body      green                   black   "^#v[-+]"