How to disable Apple Mail Link Previews

Background

In the Ventura macOS release, Apple Mail included the feature to preview link urls. I found this feature rather annoying and I had to right click and always had to “Convert to plain link” on the first URL in the email.

Sample script

Source: https://apple.stackexchange.com/questions/450339/turn-off-link-preview-in-mail Here is the sample script to run in terminal and turn it off

sudo defaults write /Library/Preferences/FeatureFlags/Domain/Mail.plist RichLinks -dict-add Enabled -bool NO 
sudo chmod -R o+rX /Library/Preferences/FeatureFlags

Here is the Plist

/Library/Preferences/FeatureFlags/Domain/Mail.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>RichLinks</key>
    <dict>
        <key>Enabled</key>
        <false/>
    </dict>
</dict>
</plist>

Final steps

Once you update the file, you’ll need to reboot