Is there a way to set up Entourage so that email messages are deleted
from the server after they are read? I know that you can do this to
each individual message, but was wondering if you could have this be
automatic. Thank you.

Re: messages on the server by Adam

Adam
Sat May 15 17:26:44 CDT 2004

In article <6fc794de.0405151154.53e66520@posting.google.com>, Wick
<wickr@swbell.net> wrote:

> Is there a way to set up Entourage so that email messages are deleted
> from the server after they are read? I know that you can do this to
> each individual message, but was wondering if you could have this be
> automatic. Thank you.

That would be a fairly dangerous option.

Can you be more specific about what you are trying to accomplish and
what type of account you are using (POP3 vs. IMAP)?

--
Adam Bailey | Chicago, Illinois
adamb@lull.org | Finger/Web for PGP & S/MIME
adamkb@aol.com | http://www.lull.org/adam/

Re: messages on the server by Dave

Dave
Sat May 15 17:38:11 CDT 2004

On 5/15/04 12:54 PM, in article
6fc794de.0405151154.53e66520@posting.google.com, "Wick" <wickr@swbell.net>
wrote:

> Is there a way to set up Entourage so that email messages are deleted
> from the server after they are read? I know that you can do this to
> each individual message, but was wondering if you could have this be
> automatic. Thank you.

It's not the cleanest solution, but this script should do it if you set it
up to run regularly (e.g. Every 10 minutes) via a schedule. Caveat, I don't
have any POP accounts with leave on server enabled, so I didn't test it.
Also, this only check messages in the Inbox and Deleted Items; it won't work
for any messages moved to other folders.

tell application "Microsoft Entourage"
set cm to (every message in the in box folder) & ¬
(every message in the deleted mail folder)
display dialog (count of cm)
repeat with msg in cm
if ((read status of msg) is read) and ¬
((online status of msg) is not (not on server)) then
set connection action of msg to remove at next connection
end if
end repeat
end tell


Re: messages on the server by Dave

Dave
Sat May 15 19:03:15 CDT 2004

On 5/15/04 3:38 PM, in article BCCBE9E3.F5E1%dc@dev.null, "Dave Cortright"
<dc@dev.null> wrote:

> On 5/15/04 12:54 PM, in article
> 6fc794de.0405151154.53e66520@posting.google.com, "Wick" <wickr@swbell.net>
> wrote:
>
>> Is there a way to set up Entourage so that email messages are deleted
>> from the server after they are read? I know that you can do this to
>> each individual message, but was wondering if you could have this be
>> automatic. Thank you.
>
> It's not the cleanest solution, but this script should do it if you set it
> up to run regularly (e.g. Every 10 minutes) via a schedule. Caveat, I don't
> have any POP accounts with leave on server enabled, so I didn't test it.
> Also, this only check messages in the Inbox and Deleted Items; it won't work
> for any messages moved to other folders.

Whoops, just noticed I left a debug line in the previous post. Here's the
corrected script.

tell application "Microsoft Entourage"
set cm to (every message in the in box folder) & ¬
(every message in the deleted mail folder)
repeat with msg in cm
if ((read status of msg) is read) and ¬
((online status of msg) is not (not on server)) then
set connection action of msg to remove at next connection
end if
end repeat
end tell