Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Generate 'Read Receipts' in Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Generate 'Read Receipts' in Mail.app
Authored by: damies on Dec 28, '05 02:39:34AM

Could some one with apple script experiance write a script or 2 to do the following:

1) Turn on return receipts:
defaults write com.apple.mail UserHeaders '{"Disposition-Notification-To" = "email@some.site.com"; }'

2) Turn off return receipts:
defaults delete com.apple.mail UserHeaders

so that these scripts could be with in easy reach when needed.

Dave.



[ Reply to This | # ]
Generate 'Read Receipts' in Mail.app
Authored by: scottorama on Jan 09, '06 02:20:51AM

Save these as two different scripts, then you can turn the receipts on/off at will!

Also, if you save the filenames as: ThisIsMyGetThenScript___ctl-g.scpt and
ThisIsMyCancelThemScript___ctl-c.scpt, you can use ctl-g and ctl-c as shortcuts to turn the receipts on and off!

To verify the headers are working, you can open your Sent folder, select the outoging message and the select View->Message->Long Headers to see the Disposition-Notification-To header is on the email.

I did have to restart Mail to have the changes take effect... unfortunately... but maybe YMMV!

Good Luck!

(Open Applications->AppleScript->Script Editor and copy/paste these into two new scripts. Save the scripts in the Folder: Applications->AppleScript->Example Scripts->Mail Scripts. Make sure to put the address you want the receipts to come to in place of email@some.site.com! And be sure to use those backslashes to keep AppleScript Editor happy!)

-- Turn On
tell application "Finder"
do shell script "defaults write com.apple.mail UserHeaders '{\"Disposition-Notification-To\" = \"<email@some.site.com>\"; }'"
end tell

-- Turn OFF
tell application "Finder"
try
set rc to do shell script "defaults delete com.apple.mail UserHeaders"
on error
return
end try
end tell



[ Reply to This | # ]