Skip to content

Instantly share code, notes, and snippets.

@iVosey
iVosey / altermail.sh
Created January 31, 2022 11:11 — forked from avarayr/altermail.sh
Fix AltPlugin.mailbundle after MacOS updates
#!/bin/sh
# Check if running as root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
token=`cat /System/Applications/Mail.app/Contents/Info.plist | grep -A1 "PluginCompatibilityUUID" | grep string | sed 's/<string>//' | sed 's/<\/string>//'`
path="/Library/Mail/Bundles/AltPlugin.mailbundle/Contents/Info.plist"