In a current LUGS mailing list thread, mowgli pointed to the t-prot script as a nice tool to “fix” the so-called (and very common) TOFU style message quoting and some other annoyances (like commercial webmail provider signatures, overly excited !!!! statements, etc.) in e-mail messages. t-prot was originally developed for mutt, but can also be used with other mail clients.
As there wasn’t any t-prot package for my favourite Mac OS X package manager Homebrew yet (apparently only for MacPorts), I quickly created one myself :
- Create the file /usr/local/Library/Formula/t-prot.rb and add the following (fantastically trivial) content:
require "formula" class TProt < Formula homepage "http://www.escape.de/~tolot/mutt/" url "http://www.escape.de/~tolot/mutt/t-prot/downloads/t-prot-3.3.tar.gz" sha1 "9be24629abc598b24e887f47e9a62feddc3ed4ad" def install bin.install 't-prot' man1.install 't-prot.1' end end
- Install t-prot (run the following Homebrew command in a terminal window):
brew install t-prot
- Add the following line to your .muttrc (or check ‘man t-prot’ or the t-prot web page for options and examples):
set display_filter="t-prot -cemt -M=mutt"
2 Replies to “Homebrew package for t-prot: TOFU protection for e-mail”
Have you updated this or is it still maintained (4+ years old now)?
The latest version seems to be t-prot-3.4.tar.gz, released on 2015-03-26, so it’s 4 years old indeed. In order to get this version, just update the formula accordingly.