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!

Email Filter Body Bug?

Discussion in 'E-mail Discussion' started by garingas, Jun 21, 2007.

  1. garingas

    garingas Member

    Joined:
    Jan 12, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    When I try to create an email filter under Account Level Filtering with a "Body contains" rule, the Body is changed to From when the filter saves.

    I'm currently on 11.4.18-R14158

    Does anyone know if this is corrected or known about?

    Thanks!
     
  2. dougS

    dougS Member

    Joined:
    Apr 15, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    New Orleans, LA
    same here

    The cPanel editor appears to save the correct value to the filter file in /etc/vfilters, but when it reads certain values back in for editing the filter, it does not select the correct value (for some values only: From/To/Reply work fine Body/Any Header don't).

    I have WHM 11.1.0 cPanel 11.4.19-R14379.

    -D
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,480
    Likes Received:
    29
    Trophy Points:
    158
    cPanel Access Level:
    DataCenter Provider
    Confirmed
    -
    The rule is saved correct, the filter is built correctly, but it shows as From when you edit it even though it is body.


    Solved in 15007+, however until then

    For a quick fix:

    open up

    mail/filters/editfilter.html

    change

    ,number,number,part=$header_from:?selected:,part=$header_subject:?selected:,part=$header_to:?selected:,part=$reply_address:?selected:,part=$message_body:?selected:,part=$message_headers:?selected:,part=foranyaddress $h_to:\{comma}$h_cc:\{comma}$h_bcc:?selected:,part=not delivered?selected:,part=error_message?selected:,part=$h_X-Spam-Status:?selected:,part=$h_X-Spam-Bar:?selected:,part=$h_X-Spam-Score:?selected:,number,match=is?selected:,match=matches?selected:,match=contains?selected:,match=does not contain?selected:,match=begins?selected:,match=ends?selected:,match=does not begin?selected:,match=does not end?selected:,match=does not match?selected:,match=is above?selected:,match=is not above?selected:,match=is below?selected:,match=is not below?selected:,number,&val,number,number,number,opt=or?selected:,opt=and?selected:,number,number) filtername=$FORM{'filtername'}

    to

    ,number,number,part=$header_from:?selected:,part=$header_subject:?selected:,part=$header_to:?selected:,part=$reply_address:?selected:,part=$message_body?selected:,part=$message_headers?selected:,part=foranyaddress $h_to:\{comma}$h_cc:\{comma}$h_bcc:?selected:,part=not delivered?selected:,part=error_message?selected:,part=$h_X-Spam-Status:?selected:,part=$h_X-Spam-Bar:?selected:,part=$h_X-Spam-Score:?selected:,number,match=is?selected:,match=matches?selected:,match=contains?selected:,match=does not contain?selected:,match=begins?selected:,match=ends?selected:,match=does not begin?selected:,match=does not end?selected:,match=does not match?selected:,match=is above?selected:,match=is not above?selected:,match=is below?selected:,match=is not below?selected:,number,&val,number,number,number,opt=or?selected:,opt=and?selected:,number,number) filtername=$FORM{'filtername'}


    Better yet, just apply this patch

    http://koston.org/x3_bodyheaderfilter.patch
     
  4. dougS

    dougS Member

    Joined:
    Apr 15, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    New Orleans, LA
    Thanks

    That worked swell.
     
  5. dfltech

    dfltech Guest

    Hello Nick,

    I have upgraded the cpanel version from "11.4.19-R14379" to "11.6.0-R15076" also I have applied the patch which you have specified but still some of the emails getting filtered as spam.

    Can you please have a look into this.
     
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