> Here's a safer (and faster) way:
>
>
> tell application "Microsoft Entourage"
> set msgList to current messages
> repeat with oneMsg in msgList
> move oneMsg to folder "!!!SPAM!!!"
> set theFwd to forward oneMsg to "[EMAIL PROTECTED]"
> without opening window -- so theFwd is a message, not a window
> set fwdID to ID of theFwd
> send theFwd
> repeat until (ID of every message of sent mail folder)
> contains {fwdID}
> end repeat
> delete theFwd
> end repeat
> end tell
>
>
> or even (faster and quieter if applied to a lot of messages):
>
> tell application "Microsoft Entourage"
> set msgList to current messages
> set deleteList to {}
> repeat with oneMsg in msgList
> move oneMsg to folder "!!!SPAM!!!"
> set theFwd to forward oneMsg to "[EMAIL PROTECTED]"
> without opening window -- so theFwd is a message, not a window
> set fwdID to ID of theFwd
> set end of deleteList to theFwd
> send theFwd with sending later -- same as 'move theFwd to out
> box folder'
> end repeat
> send -- sends all messages in out box , just once
> repeat until (ID of every message of sent mail folder) contains
> {fwdID} -- final one
> end repeat
> delete deleteList -- deletes all forwards
> end tell
Both these seem to lock entourage up for some reason, a message does make it
to the outbox, but Entourage needs a force quit at that point.
--
-------------------------------------------------------------
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/>