Title: Re: Apple Script for removing message from server
On 6/3/01 4:21 PM, "contains_phenylalanine" <[EMAIL PROTECTED]> wrote:

Does anyone know of an Apple Script for removing message from server? My desire use is to have a rule and when its criteria are met the following actions will be run:

  1. Delete the message
  2. run Applescript (Applescript being delete message from server)



tell application "Microsoft Entourage"
    set theMsg to item 1 of (get current messages)
    set theAccount to the account of theMsg
   set connection action of theMsg to remove at next connection
   delete theMsg
   connect to theAccount
end tell


The last line connects to the server (and downloads more messages if any are there, although that's unlikely if this message just arrived), as well as removing this one from the server, just as in normal use. Or you can leave out that line, and it will be removed from the server at your next scheduled (or other) connection.  Also, adding a second 'delete theMsg' will delete the local copy from the Deleted Items folder completely, if you never ever want to know about it.

--
Paul Berkowitz

Reply via email to