Is there an outlook command to move an email to the junk folder?

A

Al Christoph

Is there an outlook command to move an email to the junk folder?

For obscure personal reasons I don't want to delete junk mail in the inbox
or otherwise block it. I only want to recognize it and without dragging it or
lots of exta keystroks move it to the junk folder.

Althernatively, is there a way to have a button that moves the selected
messages to a given arbitary folder?

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
G

Gordon

Al said:
Is there an outlook command to move an email to the junk folder?

For obscure personal reasons I don't want to delete junk mail in the
inbox or otherwise block it. I only want to recognize it and without
dragging it or lots of exta keystroks move it to the junk folder.

Althernatively, is there a way to have a button that moves the
selected messages to a given arbitary folder?

Right-click on the message, select "Junk Mail".......
 
B

Brian Tillman

Al Christoph said:
Is there an outlook command to move an email to the junk folder?

Other than drag-and-drop, no.
For obscure personal reasons I don't want to delete junk mail in the
inbox or otherwise block it. I only want to recognize it and without
dragging it or lots of exta keystroks move it to the junk folder.

You can colorize your incoming mail with Tools>Organize but there's no
button you can push to declare a message as junk such that it will be moved
to the Junk E-mail folder.
Althernatively, is there a way to have a button that moves the
selected messages to a given arbitary folder?

You could have a manually-initiated rule, but I don't know of any way to tie
that to a button.
 
G

Gordon

Brian said:
Other than drag-and-drop, no.


You can colorize your incoming mail with Tools>Organize but there's no
button you can push to declare a message as junk such that it will be
moved to the Junk E-mail folder.

Right-click on message, choose "Junk Mail"?
 
A

Al Christoph

Gordon wrote: "Right-click on message, choose "Junk Mail"?"

Nope. The whole point of my questioin is that none of the obvious stuff does
what I wanted. It's all way too sophisticated!-)

BUT: A bit of thought and a bit of googling and a bit of VBA coding gave me
exactly what I needed:

1) Create a macro named MoveToJunk
Sub MoveToJunk()
Dim objOL As Outlook.Application
Dim objExpl As Outlook.Explorer
Dim objSel As Outlook.Selection
Dim objItem As Outlook.MailItem
Dim colCB As Office.CommandBars
Dim objCBB As Object
Dim objMAPIFolder As MAPIFolder
Dim myNameSpace As Outlook.NameSpace

Set objOL = Application ' CreateObject("Outlook.Application")

Set myNameSpace = objOL.GetNamespace("MAPI")

Set objMAPIFolder = myNameSpace.GetDefaultFolder(olFolderJunk)
' if you want it in a sub folder of junk email or some other arbitrary
folder you
' have to have the advanced lesson:)

Set objExpl = objOL.ActiveExplorer
Set objSel = objExpl.Selection


For Each objItem In objSel
objItem.Move objMAPIFolder
Next
Set objItem = Nothing
Set objCBB = Nothing
Set colCB = Nothing
Set objSel = Nothing
Set objExpl = Nothing
Set objOL = Nothing
Beep
End Sub

2) Save the macro, test it and then put it on a tool bar in the normal way.

3) If you want to get fancy figure out a way to make the button look pretty:)

The above code is a modification of a sample that did something completely
different that I found when googling.

This code moves things to your junk folder. All the usual denials of
liability apply. Don't use it if you don't want to assume all risks of using
it.

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
G

Gordon

Al said:
Gordon wrote: "Right-click on message, choose "Junk Mail"?"

Nope. The whole point of my questioin is that none of the obvious
stuff does what I wanted. It's all way too sophisticated!-)

What on EARTH is "too sophisticated" about right-click-junk mail?
 
A

Al Christoph

Gordon wrote: "What on EARTH is "too sophisticated" about right-click-junk
mail? "

The right click is an extremely powerful tool to let you teach outlook what
you want to consider as spam. It is quite talented ("sophisticated") at that.
However, it misses the obvious command - "Move to Junk Email" even though
there is the reverse command available. (The presence of this reverse
command highlights the omission of its partner.)

There are good reasons not to want to use the capabilities of the Junk
command. Simple minded folk like might just might want to have the setting at
low and make up their own mind. And that further implies that the decision
might be just move me to the folder so that I can have this out of my inbox
but look at it later.

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
G

Gordon

Al said:
Gordon wrote: "What on EARTH is "too sophisticated" about
right-click-junk mail? "

The right click is an extremely powerful tool to let you teach
outlook what you want to consider as spam. It is quite talented
("sophisticated") at that. However, it misses the obvious command -
"Move to Junk Email"

Why should there be another "junk" option? Isn't "Block Sender" sufficient?
 
A

Al Christoph

Gordon wrote: "Why should there be another "junk" option? Isn't "Block
Sender" sufficient? "

You asked the right question to get at the heart of the matter. "Block
Sender" is too much for my current purposes, as are all the other glorious
options that are available without my new button.

I want the junk mail!!! I just don;t necessarily want it in my Inbox and I
do want a trivial way to move it to the junk folder in one click or key
stroke and without side effects.

I know I'm weird. But I'm in the middle of a study and need to keep the junk
around until I"m through.

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
B

Brian Tillman

Gordon said:
Right-click on message, choose "Junk Mail"?

That doesn't do anything with the message, per se. It allows manipulation
of the Safe and Blocked Senders lists or the Junk Mail filter settings.
That's all. It doesn't "mark" a message as Junk.
 
B

Brian Tillman

Al Christoph said:
This code moves things to your junk folder. All the usual denials of
liability apply. Don't use it if you don't want to assume all risks
of using it.

But that doesn't mean that the Junk E-mail filter is altered in any way and
if you were to get the same message a second time, it would not
automatically be moved to the Junk E-mail folder. It's operationally no
different than selecting any other folder for the destination. The presence
of a message in the Junk E-mail folder does not carry any particular
significance.
 
B

Brian Tillman

Al Christoph said:
Gordon wrote: "What on EARTH is "too sophisticated" about
right-click-junk mail? "

The right click is an extremely powerful tool to let you teach
outlook what you want to consider as spam. It is quite talented
("sophisticated") at that.

Right-click>Junk E-Mail doesn't "teach" Outlook anything at all about the
message. It can add a message's sender to the Blocked Senders or Safe
Senders list, but the Junk E-mail filter itself in unalterable by the user.
 
A

Al Christoph

Why really get to the heart of the matter. If you Add the sender to the
blocked senders list, then AS A SIDE EFFECT, it also moves the message to the
Junk Email folder. That's a good thing in most cases, and what the vast
majority of users would want.

However, I wanted a move without side effects. I don't want to block the
senders. Now i have it. But I had to write the code to do it.

Again I argue for the value of a Move to Junk folder command, one with out
side effects, on the submenu we've been discussing.

Organize does much of what I want for move to arbitrary folder. But it would
be nice to have a way to customize that is it could be done with a button on
one click.
--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
G

Gordon

Al said:
Why really get to the heart of the matter. If you Add the sender to
the blocked senders list, then AS A SIDE EFFECT, it also moves the
message to the Junk Email folder. That's a good thing in most cases,
and what the vast majority of users would want.

However, I wanted a move without side effects. I don't want to block
the senders. Now i have it. But I had to write the code to do it.

Umm surely if the mail is JUNK then you don't want to see it! I know I
don't. Thus "block sender" does the job. Why move something that is a
nuisance to a junk folder and then NOT block the sender? I don't understand
your logic at all. If a sender is sending me what I consider to be junk
mail, then I don't want to see it! Period! Ever!
 
S

Sue Mosher [MVP-Outlook]

Exactly. Why should there be a separate Move to Junk command when the Delete key works just as well. Moving an item to the junk folder serves no purpose. Since you have already evaluated it as junk, just delete it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Brian Tillman

Gordon said:
What's the difference between marking a message as Junk and blocking
the sender?

Whether or not a message is junk depends on more than the sender. The
content of the message plays a big role in whether or not the message is
actually junk. You can, after all, get junk mail from addresses you
recognize. Marking a message as junk with any decent Junk E-mail filter
should alter the filter itself by teaching it that the content of a message
is junk regardless of the sender. Outlook doesn't have that ability.
 
A

Al Christoph

Let me tell you a tale. Last fall i was contacted by a lawyer to serve as an
expert witness in a court case involving email. Never did get to qualify
because the prosecution offered a good deal to the defendant. (The state
didn't have anything worth bringing to court but I suspect the prosecutor
didn't find that out until after he was faced with the prospect of me on the
stand and consulted HIS experts.)

Let me tell you another tale. I own a domain name (which happens to be for
sale -it's a three letter English word) which attracts a lot of junk mail
because people think it's cute to use the name when forced to enter an email
address in a form. Hence I get lots more junk mail than the average person.

Let me tell you yet a third tale. If you visit http://3bears.biz, you'll see
that I like to write software that avoids drag and drop. I call it easy on
the wrist software. D&D is an interesting game, a nice way to do just one
thing on the computer, but a real drag when you have to do a lot of work.

Now my assertion in the court case would have been that the vast majority of
email is forged (in the sense of not coming from the person / pc it purports
to.) We know that the vast majority is spam. MS's Frontbridge subsidiary
dumped about 90% of its cstomer's incoming email during a recent 30 day
period. My assertion is that most of that 90% is forged.

But to prove this for my self I'm going to have to look at a significant
sample. Do some statistics, etc. Hence, I want my junk mail. And since I have
about 36000 pieces from the few months i've been collecting, i want to handle
it easily.

Hence my need for the one button no side effect click.

That is just one story about the need for the button.

If you consider the anti-spam forces you can add another group that just
might want such a button.

The need for the command is legit if perhaps a bit obscure.

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top