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.

How to filter all messages containing a word?

Discussion in 'E-mail Discussions' started by EneTar, May 15, 2017.

Tags:
  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    I'm trying to create an filter which will track all messages having the word unsubscribe.

    I tried first using the normal way with the following criteria
    body contains unsubscribe
    but when the word unsubscribe is in html the filter doesn't detect it. I though that I have to use a regular expression but I'm no good at this. Can somebody tell me how to create a filter matching *unsubscribe* ?

    Thank you in advance
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,399
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    It should filter it too because html codes are not encrypted one to not identify the words. May I know what do you see in the mail that you say has HTML and is not recognizable..
     
  3. cPanelJasonT

    cPanelJasonT Level 2 Technical Analyst
    Staff Member

    Joined:
    Oct 21, 2014
    Messages:
    55
    Likes Received:
    6
    Trophy Points:
    83
    cPanel Access Level:
    Root Administrator
  4. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    The following is a random email that can bypass the filter rule

    Code:
    body contains unsubscribe 
    See attached file I couldn't write the code inline

    Please notice the
    Code:
    >Unsubscribe</a>
    Any ideas?
     

    Attached Files:

  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,286
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide a screenshot of the exact filter rule you have enabled from the cPanel UI? Also, could you try using "Unsubscribe" with the quotation marks as the filter term and let us know if that works?

    Thank you.
     
  6. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Here is a screenshot.

    I tried lowercase and uppercase. I tried having one single rule only with the word unsubscribe

    By the way if I try "Unsubscribe" with quotes when saving the filter it saves it as plain Unsubscribe without quotes. (That is the third row in the filter.)
    Attached is also the test from Filter Trace Results

    What I did now is forward the same email message from that account to one of my accounts and then quote and reply back to the account which has this filter enabled. It got filtered finally.

    I have setup a redirect rule before discarding the message to monitor the filter in the next few days. I will report back
     

    Attached Files:

  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,286
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page