[Last Call] Learn how to a build a cloud-first strategyRegister Now


Search Subject Line for Any Variance of a Word

Posted on 2005-05-03
Medium Priority
Last Modified: 2010-04-08
I wish to obtain a code that will search the subject line on incoming e-mail for a specific word.  The only problem is the word could be mixed up...for example: womens could be wmeons or owmens or swmeno...etc.  If you haven't guessed already, this is in an attempt to target junk mail.  So what do I want to happen when the word is found, in any of its various forms...I would like it to be deleted, not permanently, but just sent to the deleted folder and marked as read.

Any help out there on this subject??
Question by:r_johnston
  • 2

Accepted Solution

kind4me earned 1000 total points
ID: 13919299
That is a dangerous filter, It is much better to allow 10 pieces of junk mail thru then to block one important e-mail.  You may wan to check all permutations of a word using a permutaion generator before entering it into code.  In addition you need to remember that the spamers use spaces often, code that would stop women would not stop w o men.  

There are a number of companys out there that make decent anti spam filters, any reason you are trying to invent your own?

Author Comment

ID: 13920492
Well, I work for an engineering company, and the word "womens" is the exact word that I am trying to block...that and all of it variances...  I don't think that anyone in my company would have any reason for using the word "womens" in their subject...

I think that learning this technique would not only be usefull for outlook, but also for access and excel in one way or another.  Knowledge is power! :)


Author Comment

ID: 13944165
Well, this question is ready to be closed...

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

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

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

834 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