Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Remove read receipt terminal command

Several months ago I was having issues with delivery of email. One of my troubleshooting solutions was to implement a read receipt code in terminal to determine which emails were going through and which were not. I have since "fixed the glitch" and want to remove or reverse the terminal command but I have no idea how to do it.



This is the terminal command I used:



defaults write com.apple.mail UserHeaders '{"Return-Receipt-To" = "your_email@somewhere.com"; "Disposition-Notification-To" = "your_email@somewhere.com"; }'



Does anyone know how to remove a terminal command, disable it, or reverse the function?



Appreciate any help.



Thanks!!!

MacBook Pro, OS X Mountain Lion

Posted on Aug 3, 2012 6:54 AM

Reply
5 replies

Dec 1, 2012 4:14 PM in response to BCmacD

Quit Mail, then in Terminal type:


defaults read com.apple.mail UserHeaders


to check that the value of UserHeaders is what you expect. If there are additional UserHeaders beyond the ones you want to delete you'll need to add them back later. Now type:


defaults delete com.apple.mail UserHeaders


All of your UserHeaders will be gone. If you need to add back some headers use:


defaults write com.apple.mail UserHeaders '{"foo" = "bar";}'


Obviously you need to replace foo and bar with your values.

Remove read receipt terminal command

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.