Just a note that I updated the t-prot.rb Homebrew formula for t-prot 3.3 (it’s really trivial, just a version bump). See my original post for the updated formula.
Homebrew package for t-prot: TOFU protection for e-mail
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 [Edited on Feb 24, 2015: Updated for t-prot version 3.3]:
- 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"
Solution for an error with ‘brew update’ with merging files
When I tried updating homebrew/brew, the following error occurred:
brew update: The following untracked working tree files would be overwritten by merge
# cd /usr/local
# git fetch origin
# git reset --hard origin/master
as explained in the second answer, solved it. Source: