Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Help matching regex

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

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    981
    Likes Received:
    41
    Trophy Points:
    28
    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. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    981
    Likes Received:
    41
    Trophy Points:
    28
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice