Results 1 to 2 of 2

Thread: Mail Filters

  1. #1
    Senior Member Raion's Avatar
    Join Date
    Dec 2003
    Location
    New York, New York
    Posts
    1,299

    Mail Filters

    I'm trying to make a mail filter that filters e-mails from drew@buffalobills.com .. However, sometimes his e-mails come from drew@mailhost.buffalobills.com or drew@mail.buffalobills.com . And sometimes he sends e-mails from drew@nfl.com.

    So I'm trying to use regular expressions to solve my problem.

    So far this is what I have:
    ^drew@buffalobills\.com|.*bufalobills\.com|nfl\.com


    This filter is catching andrew@nfl.com and I don't want it to. Is anyone here good at regular expressions and able to help me? I'm completely L_O_S_T.
    WARNING: THIS SIGNATURE IS SHAREWARE PLEASE REGISTER THIS SIGNATURE BY SENDING ME MONEY TO SEE THE COMPLETE SIGNATURE!

  2. #2
    Senior Member nihil's Avatar
    Join Date
    Jul 2003
    Location
    United Kingdom: Bridlington
    Posts
    17,188
    I don't know the answer as it has been a long time and I really cannot be bothered to dig out any references (I can't even remember where they are).

    I think I can tell you why it is doing what it is though. The ^ (caret) tells it that a string is starting with "drew" in it, so it correctly finds that string in "andrew". I would have thought it would find "andrews" as well?

    Off the top of my head, what you have looks a bit odd for a regular expression........... something tells me there ought to be some brackets somewhere? I would suggest that you look in your manual for "string delimiters"?

    Just a guess mind you

Similar Threads

  1. cmd.exe boxes flashing around screen on startup
    By sphanlon in forum Spyware / Adware
    Replies: 11
    Last Post: April 1st, 2013, 08:05 PM
  2. Port List
    By ThePreacher in forum Miscellaneous Security Discussions
    Replies: 17
    Last Post: December 14th, 2006, 09:37 PM
  3. how to finger a user via telnet
    By ai0070 in forum Miscellaneous Security Discussions
    Replies: 6
    Last Post: October 18th, 2004, 11:21 PM
  4. Tcp/ip
    By gore in forum Newbie Security Questions
    Replies: 11
    Last Post: December 29th, 2003, 08:01 AM
  5. How to read email header
    By rajat in forum Roll Call
    Replies: 0
    Last Post: February 20th, 2002, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •