Emptying Sent Items folder automatically

M

Mr 1977

I have an IMAP email a/c. When I try to set up a schedule to empty my
sent items folder, it ask me to select the folder which needs to be
emptied. For some reason none of my IMAP folders appear, including
inbox/out box etc.

Anybody know why ?

Many thanks
 
D

Diane Ross

I have an IMAP email a/c. When I try to set up a schedule to empty my
sent items folder, it ask me to select the folder which needs to be
emptied. For some reason none of my IMAP folders appear, including
inbox/out box etc.

Anybody know why ?

You need to subscribe to the folders first. In the folder list, when you hit
update, expand the folders and then subscribe to them.

--
Diane Ross, Microsoft Mac MVP
Entourage Help Page
<http://www.entourage.mvps.org/>
The Entourage Blog lists the EHP as one of the top five Microsoft Entourage
resources.
<http://blogs.msdn.com/entourage/>
 
M

Mr 1977

You need to subscribe to the folders first. In the folder list, when you hit
update, expand the folders and then subscribe to them.

I already did that. The only options for folders I can empty are the
one listed as "Folders on My computer."
 
B

Barry Wainwright [MVP]

I already did that. The only options for folders I can empty are the
one listed as "Folders on My computer."

Yes, this is a limitation in Entourage, only local and Exchange folders can
be used for automatic deletion of email by schedule.

The mail could be deleted by AppleScript, which could, in turn, be run on a
schedule.

What selection criteria do you want to use? This script will delete all sent
mail older than 10 days from the sent items folder of the first IMAP account

property theAccount : missing value
tell application "Microsoft Entourage"
if theAccount is missing value then
try
set theAccount to first IMAP account
on error errMsg number errNum
display dialog "There are no IMAP Accounts Available" buttons
{"Abort"} default button 1 giving up after 10
return
end try
end if
set theFolder to IMAP sent items folder of theAccount
set theMessages to every message of theFolder whose time sent < ((get
current date) - 10 * days)
try
delete theMessages
delete theMessages
end try
end tell

Save the script as a compiled script & put it in the ŒEntourage Script Menu
Items¹ folder in your ŒMicrosoft User Data¹ folder. The script can be
manually run from the menu or called as an action in a schedule.
 
B

Barry Wainwright [MVP]

The mail could be deleted by AppleScript, which could, in turn, be run on a
schedule.

Thinking about that, here¹s a better, shorter script that will work on all
imap accounts:

-- Delete Sent IMAP Mail v1.0
-- will delete mail sent more than 10 days ago from the sent mail folder of
each IMAP account
-- an applescript by Barry Wainwright <mailto:[email protected]>
-- This script released under a Creative Commons Attribution, NonCommercial,
ShareAlike 2.0 England & Wales License.
-- see <http://creativecommons.org/licenses/by-nc-sa/2.0/uk/> for full
details
tell application "Microsoft Entourage"
try
repeat with theAccount in every IMAP account
set theFolder to IMAP sent items folder of theAccount
set theMessages to (every message of theFolder whose time sent <
((get current date) - 10 * days))
delete theMessages
end repeat
end try
end tell
 
Top