Link to home
Start Free TrialLog in
Avatar of trower
trowerFlag for United Kingdom of Great Britain and Northern Ireland

asked on

MS Outlook Rule to move messages and mark them as read

I want to move certain messages from my inbox to my deleted messages folder and mark them as read. It will move the messages but won't mark them as read.

Any Ideas ?

Thanks
Paul
Avatar of sunray_2003
sunray_2003
Flag of United States of America image

Dear trower,

Check this

http://www.slipstick.com/addins/gallery/index.htm#markread


Thanks,
Sunray
SOLUTION
Avatar of sunray_2003
sunray_2003
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of trower

ASKER

Thanks for that. From what I found I have cobbled together a Script (below). I have this on a button at the moment, is there a way to make this into a Rule or something else that runs automatically ?

Thanks
Paul

Sub readanddelete()
Set myNameSpace = Application.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
Set myItems = myFolder.Items
Set myFolder1 = myNameSpace.GetDefaultFolder(olFolderDeletedItems)
Set myItems = myFolder.Items
For Each myMail In myItems
If InStr(1, myMail.Subject, "SPAM:") > 0 Then
        If myMail.UnRead = True Then
        myMail.UnRead = False
        End If
    myMail.Move myFolder1
ElseIf InStr(1, myMail.Subject, "WARNING.") > 0 Then
        If myMail.UnRead = True Then
        myMail.UnRead = False
        End If
    myMail.Move myFolder1
End If
Next
End Sub
Avatar of will_scarlet7
will_scarlet7

How did you setup your rule? I just made a rule like so:

1.) Start from a blank rule
              Select = Check messages when they arrive.
2.) Which condition(s) do you want to check
              Select = With specific words in the subject
3.) What do you want to do with the message(s)
              Select = Mark as read
              Select = Move it to the specified folder


That worked for me both with the moving and marking as read.
Avatar of trower

ASKER

Will Scarlet7

That is exactly what I did !! Are you using version 2002 ? Are you moving them to the deleted folder ?

In the Rules Wizard there is an option to run a script - does anyone know where you have to store those scripts and what they need to be written in ?

Cheers
Paul
Hi Paul,

I am using version 2002 with a PST. Are you using an Exchange server os a pst file?

you could check out this utility:

http://www.realpopup.it/realaccount/rahowitworks.html

It has a function to set all email in a specific folder as read. Not sure if you want all the email in your deleted items folder ars read of if there are some that should be left as un-read, but it is supposed to be able to set it per folder.

Hope it is a help!

will_scarlet7
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial