Search Subject Line for Any Variance of a Word

Posted on 2005-05-03
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
    LVL 8

    Accepted Solution

    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

    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

    Well, this question is ready to be closed...

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Learn more about the importance of email disclaimers with our top 10 email disclaimer DOs and DON’Ts.
    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now