|
|
Generate 'Read Receipts' in Mail.app
Here is a version of the script that will invisibly send the return receipt message, just like Outlook or any other app
with that capability would, without you having to click "Send": using terms from application "Mail"
on perform mail action with messages selectedMsgs
repeat with msg in selectedMsgs
set theSubject to subject of msg
set theSender to extract name from sender of msg
set theAddress to extract address from sender of msg
set theDate to date sent of msg
tell application "Mail"
set nowDate to current date
set theBody to "Your message" & return & return & " Re: " & theSubject & return & " Sent: " & theDate & return & return & "was received" & nowDate & ". You WILL NOT get a second confirmation when the message is actually read. Thank you." & return
set newMessage to make new outgoing message with properties {subject:"Return Receipt: " & theSubject, content:theBody & return & return}
tell newMessage
make new to recipient at end of to recipients with properties {name:theSender, address:theAddress}
end tell
send newMessage
end tell
end repeat
end perform mail action with messages
end using terms from
Also I want to point out that if you send an email to yourself, the Mail Rule mentioned in the article will send a receipt to yourself, and then a receipt of that receipt, and another, and so on. Every receipt generated contains the same header that triggers the receipt Rule, so the cycle never ends. Therefore the Rule should be changed to:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|