/MailTrackerBlocker

An email tracker, read receipt and spy pixel blocker plugin for macOS Apple Mail.

Primary LanguageObjective-CBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

MailTrackerBlocker Awesome Humane Tech

MailTrackerBlocker is a plugin (mailbundle) for the default Mail app built-in to macOS. Email marketers and other interests often embed these trackers in HTML emails so they can track how often, when and where you open your emails. This plugin works by stripping out a good majority of these spy pixels out of the HTML before display, rendering the typical advice of disabling "load remote content in messages" unnecessary.

MailTrackerBlocker makes it possible to browse your inbox privately with images displayed once again.

Read more about how email pixel tracking works.

<img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src=
-"https://mailtrack.io/trace/mail/0eabccbe98c98e9b8e9a8b89eab89ce9ab89e8bc.png?u=1234567"
+"https://localhost/mail/0eabccbe98c98e9b8e9a8b89eab89ce9ab89e8bc.png?u=1234567"
>

Prerequisites

Apple Mail on macOS 10.11 - 11.x.

Setup

Recommended Installation via Homebrew Cask (private tap)

You can install MailTrackerBlocker.pkg directly from the releases page but I strongly recommend installing as an Homebrew Cask for ease of updating.

$ brew install apparition47/tap/mailtrackerblocker

To enable and use

  1. Open Mail, goto Preferences > General > Manage Plug-ins... > check "MailTrackerBlocker.mailbundle" > Apply and Restart Mail.
  2. Tap on the button to find out what was blocked.

⚠️ Disabling "load remote content in messages" with MailTrackerBlocker enabled is redundant; re-enable this option for the best experience.

To uninstall

$ brew uninstall mailtrackerblocker

Or if you installed manually, quit Mail then delete /Library/Mail/Bundles/MailTrackerBlocker.mailbundle.

Building from source

A. Makefile

git clone https://github.com/apparition47/MailTrackerBlocker.git
cd MailTrackerBlocker
make

B. Xcode

  1. Give Xcode Full Disk Access from System Preferences > Security & Privacy > Privacy > Full Disk Access and add Xcode.
    • Required because the mailbundle needs to be installed into /Library/Mail/Bundles.
  2. Open the Xcode project, hit build.

BSD-3.