LandyMan
Honorary Master
Hi all,
Ok, so Entourage does not have the option to generate read receipts automatically, but there is a script available to do so. However, whenever the script runs (I check for the header: Disposition-Notification-To and run the script accordingly) I get the following error:
Microsoft Entourage got an error: Some data was the wrong type
The Script:
Anything blatantly wrong here?
EDIT: It only gives the error when it is generating the response from an Exchange account, and not from POP
Ok, so Entourage does not have the option to generate read receipts automatically, but there is a script available to do so. However, whenever the script runs (I check for the header: Disposition-Notification-To and run the script accordingly) I get the following error:
Microsoft Entourage got an error: Some data was the wrong type
The Script:
Code:
-- Generate Return Receipt v1.1 (13th September 2004)
-- Barry Wainwright <[email protected]>
-- This script (for Microsoft Entourage® vX or later)
-- will generate a 'Return Receipt' for messages received
-- with a "Disposition-Notification-To" header.
-- The format of the returned receipt is similar to those returned by Microsoft Outlook
tell application "Microsoft Entourage"
-- Get the message
try
set theMess to item 1 of (get current messages)
on error
return -- script was called with no message selected
end try
set theSender to sender of theMess
if display name of theSender is "" then
set theSender to address of theSender
else
set theSender to display name of sender of theMess & " <" & address of sender of theMess & ">"
end if
-- Get my details
set myAccount to account of theMess
set myName to full name of myAccount
set myEmail to email address of myAccount
-- Generate the reply details
set newSubject to "Return Receipt (displayed) - [" & subject of theMess & "]"
set bodyText to "This is a Return Receipt for the mail you sent to <" & myEmail & ">.
Note: This Return Receipt only acknowledges that the message was received on the recipient's computer. There is no guarantee that the recipient has read or understood the message contents.
-----------------------
Reporting-UA: Microsoft-Entourage/" & (version as text) & "
Final-Recipient: rfc822;<" & myEmail & ">
Disposition: automatic-action/MDN-sent-automatically; displayed
-----------------------
Message Information:
Subject: " & the subject of theMess & "
To: " & theSender & "
Date: " & ((time sent of theMess) as text) & "
Received: " & ((time received of theMess) as text)
-- Make the reply message
make new draft window with properties {account:myAccount, recipient:theSender, subject:newSubject, content:bodyText}
end tell
Anything blatantly wrong here?
EDIT: It only gives the error when it is generating the response from an Exchange account, and not from POP
Last edited: