Skip navigation

Remove read receipt terminal command

1068 Views 3 Replies Latest reply: Oct 29, 2013 12:17 AM by tbakheet RSS
BCmacD Level 1 Level 1 (10 points)
Currently Being Moderated
Aug 3, 2012 6:54 AM

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
  • Douglas Urner Level 1 Level 1 (15 points)
    Currently Being Moderated
    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.

  • tbakheet Calculating status...
    Currently Being Moderated
    Oct 29, 2013 12:17 AM (in response to Douglas Urner)

    Hello Douglas,

     

    I tried to remove read receipt request by running the command defaults delete com.apple.mail UserHeaders, but i got this message:

     

    Domain (com.apple.mail) not found.

    Defaults have not been changed.

     

    Any suggestions?

     

    your help is greatly appreciated!

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.