X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2FMuttrc;fp=debian%2FMuttrc;h=d13ed6c9daf1442f9d2efdf390be7964d80b9456;hb=a2f12f10589a04b48cafa947b645c6ec69ec2829;hp=0000000000000000000000000000000000000000;hpb=ebce048d2bb94d717b46f34b02ed1720aaa8aaee;p=pkg%2Ft-prot.git diff --git a/debian/Muttrc b/debian/Muttrc new file mode 100644 index 0000000..d13ed6c --- /dev/null +++ b/debian/Muttrc @@ -0,0 +1,14 @@ +set display_filter='t-prot -cmekatlS --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads' +# 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 -cmekatlS --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'\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 -cmekatlS --bigq --pgp-move-vrf -Mmutt -L/etc/t-prot/footers -A/etc/t-prot/ads'; exec exit\n:exec display-message\n" "Turn TOFU protection on" + +# highlight TOFU protection: +color body brightmagenta black "^\\[---.*" +color body green black "^#v[-+]"