X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=debian%2FMuttrc.t-prot;fp=debian%2FMuttrc.t-prot;h=729b0d602f089c964c7ec494277f3a3f5b3786cd;hb=a6c12e50628dd71ecc46e1724d1912689540f359;hp=0000000000000000000000000000000000000000;hpb=3319969a89bb47afbd35da55d8c0d62a33be9ca7;p=pkg%2Ft-prot.git diff --git a/debian/Muttrc.t-prot b/debian/Muttrc.t-prot new file mode 100644 index 0000000..729b0d6 --- /dev/null +++ b/debian/Muttrc.t-prot @@ -0,0 +1,14 @@ +set display_filter='t-prot -cemktS --bigq --pgp-move-vrf -Mmutt -L/usr/share/doc/t-prot/examples/footers' +# set it to '' to turn it off by default + +# toggle TOFU protection with ESC-0 (off) and ESC-1 (on) +macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off" +macro generic \e1 ":set display_filter='t-prot -cemktS --bigq --pgp-move-vrf -Mmutt -L/usr/share/doc/t-prot/examples/footers'\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 -cemktS --bigq --pgp-move-vrf -Mmutt -L/usr/share/doc/t-prot/examples/footers'; exec exit\n:exec display-message\n" "Turn TOFU protection on" + +# highlight TOFU protection: +color body brightmagenta black "^\\[---.*" +color body green black "^#v[-+]"