Jim
On Thursday, August 2, 2001, at 09:36 PM, Paul Berkowitz wrote:
On 8/2/01 8:26 PM, "James Tummins" <[EMAIL PROTECTED]> wrote:
> One of the few features of Mail.app in OS-X that�s very interesting is the
> ability to bounce a message to the sender. This function indicates that
> one's email address does not exist, and the sender gets the bounced message
> as if it can't be received.
>
> Is there a way in Entourage to script such a function? If so is there a
> script available to do this?
>
Oddly enough, someone else just asked the identical question TODAY on the MacOE-Talk list and I gave an answer. Here it is, adapted for E:
�
The simplest way is to make a Mail Rule that
If
����<Is Junk mail>
Then
����<Reply> �<Reply Message>
����<Delete message>
And make the Reply message something like:
����"Go away. Your message has been deleted without being read."
(It will be sent at your next Send & Receive All schedule run.)
If it really matters to you to bounce it back just as it came (the above method won't quote the original text) then instead make the Action to
Then
����<Run AppleScript>
and set it to the following script saved in Script Editor as a Compiled Script and saved to your active Script menu Items folder (usually in Microsoft User Data folder in Documents, if yo8i have one; otherwise in the OE 5 folder):
tell application "Microsoft Entourage"
����set theMsg to item 1 of (get current messages)
����set {dName, eAddress} to {display name, address} of sender of theMsg
����set {theSubject, theContent} to theMsg's {subject, content}
����set bounceMsg to make new outgoing message at out box folder with properties {subject:theSubject, content:theContent, recipient:{address:(dName & " <" & eAddress & ">")}}
����send bounceMsg
����delete theMsg
����set read status of theMsg to read
end tell
That will send the bounce message back immediately, or else remove the 'send bounceMsg' line to leave it in the Outbox where it will be sent at the next Send & Receive All run.) It will put the original in the Deleted Items folder, unbolded, from where you can fish in out in case you made a mistake. If you'd prefer it to be completely deleted without ever seeing it, then replace the final line by a second
����delete theMsg
line. That will get rid of it completely.
--
Paul Berkowitz
