The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help matching regex

Discussion in 'E-mail Discussions' started by keat63, Mar 24, 2015.

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I've created a rather messy email filter, which could no doubt be done on one line.
    It goes along the lines of

    if body contains 111 or
    body contains 222 or
    body contains 333 or
    any header contains 111 or
    any header contains 222 or
    any header contains 333
    then redirect to "someone@else.com"

    The list is a little more exhaustive than this.

    Does anyone know how to do this using a regex please ?
     
    #1 keat63, Mar 24, 2015
    Last edited: Mar 24, 2015
  2. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    The fist link was as clear as mud, with the second one not being much better.
    Maybe i'll stick to what i have.
     
Loading...

Share This Page