Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Outlook rule for Re: as the subject

Posted on 2011-02-18
18
Medium Priority
?
920 Views
Last Modified: 2012-05-11
I get a lot of spam with the subject -

Re:

Just 'Re:' but of course I get legitimate emails with Re: in the subject but with other characters as well.

is there a way to identify this with a rule?

Note - the body varies so there is no common phrase.
0
Comment
Question by:kentgorrell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 4
  • 2
  • +1
18 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 34932291
what is the script you use to send mail
0
 

Author Comment

by:kentgorrell
ID: 34932526
What has it got to do with  how I send email?
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 34932570
do you work with PHP? if use this library, http://phpmailer.worxware.com/index.php?pg=examplebmail
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:kentgorrell
ID: 34932681
no this question has nothing to do with php. this is strickly an outlook question.

I currently have another question regarding an error I get trying to use phpmailer with a web form but it's not related.

This question is purely about spam I receive in outlook.
0
 
LVL 1

Expert Comment

by:los_cm
ID: 34932700
I'm nnot sure if these are legitimate emails that your trying to get rid of or just plan old random spam. But I've had a lot of luck using http://www.unsubscribe.com/ the free version allows up to 5 unsubscribes a month. But it has literally help me clean up the junk I've been getting in my email account. So much that I would consider paying for the service. Give it a shot and let me know. Other than that if you could obviously mark the stuff as junk and block it. But for some type of smart rule to figure out what is legit I'm not too sure how to figure that out.
0
 

Author Comment

by:kentgorrell
ID: 34989755
Thanks los cm but unsubscribing wont' help, each email is from a different address. the only common denominator is the subject "Re"
0
 

Author Comment

by:kentgorrell
ID: 34989761
I've seen suggestions for using the 'except' eg I add every letter apart from 'r' and 'e' to except and 're' to including.
this may work but my rules wizard is not offerring an 'expect if subject contains' option.
0
 

Author Comment

by:kentgorrell
ID: 34989772
Hi loqudotcom,
I just noticed I've misstakenly added the php zone to thsi post. Maybe it defaulted from my previous question. sorry.
0
 

Author Comment

by:kentgorrell
ID: 34993506
Thanks MO.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 2000 total points
ID: 34993570
Just set up a rule to run on every incoming mail. Have the rule run a script. Then point it to a macro something like:
Sub CheckMail(msg As MailItem)
Dim destfolder As Outlook.MAPIFolder
Dim ns As Outlook.NameSpace
Dim item As Outlook.MailItem 

Set ns = Application.GetNamespace("MAPI")
Set inbox = ns.GetDefaultFolder(olFolderInbox)
Set root = inbox.Parent
Set destfolder = root.Folders("Junk E-mail") 

  If Trim(lcase(msg.Subject)) = "re:" Then
    msg.Move destfolder
  End If
End Sub

Open in new window

0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34993581
I don't think there is a way to do it with Outlook rules without a macro. It seems to only let you search the subject for certain words.

Using Trim and LCase means that it will get all messages like "re:", "RE:   ", "Re:" etc. You might want to use
  If Trim(lcase(msg.Subject)) = "re:" or Trim(lcase(msg.Subject)) = "re" Then
to get the ones with no colon.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34993591
And yeah, if you are currently viewing a question when you ask a new one it usually adds that zone without asking.
Sorry about that. Hope you have the answer you were looking for now.
0
 

Author Comment

by:kentgorrell
ID: 34993660
Wow Tommy, that is fantastic.

I'm guessing inbox and root should also be declared as Outlook.MAPIFolder or should I leave them as variants?

I declared them explicitly and setup a rule to call the procedure and it all runs just fine.

Many thanks.
0
 

Author Closing Comment

by:kentgorrell
ID: 34993662
Brilliant!
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34994420
Sorry, yeah. I pieced that code together from a couple old questions I've worked on here so I missed declaring those.
0
 

Author Comment

by:kentgorrell
ID: 34994427
Thanks Tommy,

When you are't working in the real VBE it's easy to do.

What would we do without the Compiler picking up our missed bits!

and thaks for the code, it's opened up so many possibilites.
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
This video discusses moving either the default database or any database to a new volume.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question