Deleting email in Junk Folder?

M

Mike Jason

Is there a way to delete the email in my junk folder without going in to
each file and deleting them? I do not want to have to click each email
and have it open in my preview window while connected to the internet. I
could turn off my connection and delete each file, I was just hoping
there was an easier way.

Thanks!
 
A

Adam Bailey

Mike Jason said:
Is there a way to delete the email in my junk folder without going in to
each file and deleting them? I do not want to have to click each email
and have it open in my preview window while connected to the internet. I
could turn off my connection and delete each file, I was just hoping
there was an easier way.

You could turn the Preview Pane off via the View menu.
You could create a Schedule that automatically deletes mail from the Junk
folder after a specific period of time (giving you a chance to review).

Also note that if you are using Entourage 2004, you don't need to worry
about viewing junk messages in the preview pane. Remote images are not
displayed.
 
M

Mike Jason

Thanks for your response. How can I set my inbox so that images are not
downloaded by default. I do sometimes get junk email in my main inbox,
and i do not want the images to load.

Thanks!!!
 
M

mmmmark

If you use v.X you are out of luck (unless you want to upgrade to 2004 which
does this by default).

Also, you can easily press Command-A to after you click a message in junk
mail to select all, then press Delete.

-Mark
 
B

Barry Wainwright

Is there a way to delete the email in my junk folder without going in to
each file and deleting them? I do not want to have to click each email
and have it open in my preview window while connected to the internet. I
could turn off my connection and delete each file, I was just hoping
there was an easier way.

Thanks!

Run an applescript such as this:

Tell app "Microsoft Entourage"
Set junkMail to (get messages of folder id 5)
-- folder id 5 is local junk mail folder
Delete junkmail
Delete junkmail
-- do it twice to remove it from the deleted items folder as well
End tell

If you are using IMAP folders with their own Junk Mail folder as well, use
this script:

tell application "Microsoft Entourage"
set junkMailFolder to item 1 of (get every folder of IMAP account 1
whose name contains "junk")
set junkMail to messages of junkMailFolder
delete junkMail
end tell
 
P

Paul Berkowitz

Tell app "Microsoft Entourage"
Set junkMail to (get messages of folder id 5)
-- folder id 5 is local junk mail folder
\

Nope. folder id 5 is the Deleted Items folder. (I think you've been here
before, Barry?)

In Entourage 2004, folder id 6 is the local junk folder.

In Entourage X, you'd have to use the exact name of your own local Junk
folder, whatever you've called it, such as

set junkMail to folder "Junk"

or similar to what you've suggested for IMAP

set junkMail to first folder whose name contains "Junk"

as an all-purpose solution.

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
M

matt neuburg

Paul Berkowitz said:
\

Nope. folder id 5 is the Deleted Items folder. (I think you've been here
before, Barry?)

In Entourage 2004, folder id 6 is the local junk folder.

In Entourage X, you'd have to use the exact name of your own local Junk
folder, whatever you've called it, such as

set junkMail to folder "Junk"

or similar to what you've suggested for IMAP

set junkMail to first folder whose name contains "Junk"

as an all-purpose solution.

A really all-purpose solution is to delete the selected messages. That
way, emptying the junk folder consists of switching to it, doing a
Select All, and running the script that deletes the selection. I think
we've been here before too... m.
 
B

Barry Wainwright

\

Nope. folder id 5 is the Deleted Items folder. (I think you've been here
before, Barry?)

In Entourage 2004, folder id 6 is the local junk folder.

Doh!

Yes, I been here before.

Sorry.
 
B

Barry Wainwright

A really all-purpose solution is to delete the selected messages. That
way, emptying the junk folder consists of switching to it, doing a
Select All, and running the script that deletes the selection. I think
we've been here before too... m.

Yes, but the OP wanted to delete the messages without having to select them
(as I like to as well)
 
M

Mike Jason

I am new to the mac world. With that said:

1. what language is applescript based on?
2. where would this script reside?


Thanks everyone for the help!!!!
 
M

mmmmark

Barry Wainwright said:
Yes, but the OP wanted to delete the messages without having to select
them
(as I like to as well)

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
<http://www.entourage.mvps.org/>

You could always copy a known non-junk email into that folder, click on it,
then select all and hit delete. Just a way to do it for those without 2004
or who are scared of Applescript.

-Mark
 
Top