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.

Email Filtering

Discussion in 'E-mail Discussions' started by frankfer, Aug 21, 2007.

  1. frankfer

    frankfer Registered

    Joined:
    Aug 20, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Under "Email Filtering" in cpanel, there are some options that I do not understand.
    They are the following (under "Add Filter", in the second Drop Down Box.):

    1. Matches Regex,
    2. is above (numbers only),
    3. is not above (numbers only),
    4. is below (numbers only),
    5. is not below (numbers only).

    One thing I would like to do is, filter any emails that contain no text in the Body (e.g. Some of my Spam contains only an attachment, and some has only graphics). How can I do this?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Matches Regex is if you wish to filter your mail using a Perl-style Regular Expression. If you don't know what that is, you're probably not going to be using it :).

    The numbers only entries are for numerical components of email such as spam score. The reason for "numbers only" is that a common implementation is to use a decimal number such as 2.1 for a spam score, however on most cPanel systems the decimal is ignored (mainly for more accurate comparisons) so what may be 2.1 on some systems is actually 21 on most cPanel/WHM systems.

    If you were just doing a blank body, I'd use a rule "Body Equals" and leave the text field blank. However, gaging from your inquiry, you may need something more elaborate than that for what you specifically desire. Generally more elaborate rules make use of Regex as it is a very powerful (though non-intuitive) way of comparing text.
     
  3. frankfer

    frankfer Registered

    Joined:
    Aug 20, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Writing Perl-style Regular Expressions, for email filtering.

    Where might I go to laern more about that "Perl-style Regular Expression"? :)

    Thanks,
    Frank
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I wont recommend any specific website, but an Internet search for "Perl Regex Cheatsheet" will yield useful results.
     
Loading...

Share This Page