This script is based upon the Standard Apple Script "Create New Mail" located in the folder
/library/scripts/Mail Scripts. I have deleted the unneccesary parts (at least for this purpose).
The script assumes that you have multiple mail identities (accounts), so as in the original script,
the modified script asks you to select the account from which the email should be sent.
The rest of the script I've either deleted or is pretty much the same as the original.
The only "innovation" you see in line 22. Since we know the sender through the selection procedure,
I afterwards added a new line "\n" and then the required headerline (Disposition-Noticiation-To
together with the senders email that we already know. Please take care that theSender that
comes out of your address book doesn't contain single or double quotation marks. In this case
the mail will be sent out but the recipient might see no receipt request. When you compile this routine
- what you definitely have to do - you will see that "\n" will vanish and the rest of the former line
(Disposition-Notification-To ...) is now in line 23. Don't worry the \n that forces a new line in the
outgoing mail is still there and active. Below you see how it will look like:
Now you have to add a new rule to mark the mails where you have requested a Notification.
Within "Create New Rules" you have to edit the header and add a new headerline named
"Disposition-Notification-To". The rule is simple: if a mail contains an @-sign in this headerline
colour it as you like. Now you not only will see within your sent items the mails where you have
requested a return receipt from addressee but also in the Inbox the mails where the sender
asks you send him a return receipt
This script is an example for "New Email & Receipt" If you want to be perfect you can do the
same with "Answer & Receipt", "Answer to All & Receipt" and "Forward & Receipt" and by using iKey2
or something similar you can run those scripts from an external menu or Hot-key. If you like you can
try to start the script(s) from within Mail Act-On. But my Apple Mail always crashes when I tried to
do this.
The script has been successfully tested on Intel Mac running under 10.4.7 using Exchange 2003,
Postfix and Exim as a Mailserver