I have the below script, it takes a selected message and forwards it to a
special address, then it moved the originally selected message to the
Junk-Email Folder.

Right now I have a outgoing rule to delete any emails destined for this
special address, but it would be a lot easier for me to share this script if
if could simply clean up after itself, meaning I would like to to delete the
message it has sent once it is sent.

tell application "Microsoft Entourage"
    set msgList to current messages
    repeat with oneMsg in msgList
        try
            if address of address of (first recipient of oneMsg) does not
start with "postmaster@" then
                set theFwd to forward oneMsg to "[EMAIL PROTECTED]"
without opening window
                send theFwd with sending later
            end if
        end try
        move oneMsg to folder id 6
    end repeat
end tell
-- 
-------------------------------------------------------------
Scott Haneda                                Tel: 415.898.2602
<http://www.newgeo.com>                     Fax: 313.557.5052
<[EMAIL PROTECTED]>                          Novato, CA U.S.A.

-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to