Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

An Entourage script to delete junked messages Apps
I have an Entourage rule that moves messages that have been identified as junk mail to a "Junk" folder under my "inBox". I don't want to delete these messages automatically because sometimes Entourage is wrong about it being junk mail. Once in a while I look at the Junk folder and I can usually tell from the subject lines of the messages that they are indeed junk mail. Then I have to delete them manually which involves selecting them all, etc.

This was irritating, so I wrote an AppleScript to do it, which I then put in the Entourage Script Menu Items folder. Here's the AppleScript:
tell application "Entourage"
set junkFolder to folder "Junk" of in box folder
set selectedMessages to messages of junkFolder
repeat with theMessage in selectedMessages
set read status of theMessage to read
delete theMessage
end repeat
end tell
Enter the script using the Script Editor in /Applications -> AppleScript.
    •    
  • Currently 3.60 / 5
  You rated: 5 / 5 (5 votes cast)
 
[6,332 views]  

An Entourage script to delete junked messages | 3 comments | Create New Account
Click here to return to the 'An Entourage script to delete junked messages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Built-in in Entourage! Duh!
Authored by: eric-t on Oct 02, '02 10:17:01AM

Why not make a schedule this way:

Tools / Run Schedule / Edit Schedules
Click New

set 'When' to 'Manually'
set action to 'Delete Mail' from 'Junk' older than '0' days

You can run the schedule from the Tools / Run Schedule menu.



[ Reply to This | # ]
Built-in in Entourage! Duh!
Authored by: hayne on Oct 02, '02 12:22:34PM

The main reason why a scheduled deletion would not suit me is that I want them deleted as soon as I notice (by the bolding of the inBox) that there is something in my inBox. I don't want to wait for a later deletion. But also, I am reluctant to commit to any scheduled deletion when there is a possibility that some of the messages might have been misclassified as junk. (Entourage's junk mail filter is not nearly as good as that in Mail.app)



[ Reply to This | # ]
Built-in in Entourage! Duh!
Authored by: bjmorgan on Oct 02, '02 02:40:58PM

Yeah, you can do that in Entourage pretty much without the AppleScript.

I have it set up to filter incoming messages (it goes through about a dozen filters and three junk mail filters [mainly because Entourage's Junk Filter is lacking compared to Mail.app]) and depending on if it meets certain requirements, it automatically ends up in my "Junk Limbo Folder" where I'll take a glance at it throughout the day and if it so happens NOT to be junk I simply toss it back in the Inbox and unmark it. On quit (at the end of the day), I have a Schedule set up to delete the "Junk Limbo Folder."

There's a 2% chance that it ends up in the Junk Limbo folder by mistake.



[ Reply to This | # ]