X-Git-Url: https://git.deb.at/w?p=pkg%2Ft-prot.git;a=blobdiff_plain;f=contrib%2Fmuttrc.t-prot;h=4dfc645f79b3a265a68b7c9ea9a1a303793e4467;hp=629582887398c7a61aac9ffcd23458bbb732c04f;hb=f9a85f8f92aa6166e63e9effe6b0681310e59ff8;hpb=d291c240515f15a9bb267aa00a60cd4b6e2a4634 diff --git a/contrib/muttrc.t-prot b/contrib/muttrc.t-prot index 6295828..4dfc645 100644 --- a/contrib/muttrc.t-prot +++ b/contrib/muttrc.t-prot @@ -1,17 +1,20 @@ -# $Id: muttrc.t-prot,v 1.11 2010/02/19 16:21:14 jochen Exp $ - # 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='t-prot -aelmtS -c --bigq -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters' +# +# The $my_tprot variable works since mutt-1.5.12, in older +# versions you must copy its value in each macro. + +set my_tprot='t-prot -aelmtS -c --bigq -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters' +set display_filter=$my_tprot # 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='t-prot -aclmtS -c --bigq -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters'\n" "Turn TOFU protection on" +macro generic \e1 ":set display_filter='$my_tprot'\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='t-prot -aelmtS -c --bigq -Mmutt --spass -L$HOME/.mutt/mlfooters -A$HOME/.mutt/adfooters'; exec exit\n:exec display-message\n" "Turn TOFU protection on" +macro pager \e1 ":set display_filter='$my_tprot'; exec exit\n:exec display-message\n" "Turn TOFU protection on" # highlight TOFU protection: color body brightmagenta black "^\\[---.*"