Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    20

    Default Email Filter Body Bug?

    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. #2
    Member
    Join Date
    Apr 2003
    Location
    New Orleans, LA
    Posts
    5

    Default 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. #3
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    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. #4
    Member
    Join Date
    Apr 2003
    Location
    New Orleans, LA
    Posts
    5

    Default Thanks

    That worked swell.

  5. #5
    dfltech
    Guest

    Default

    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:?selecte d:,part=$reply_address:?selected:,part=$message_bo dy:?selected:,part=$message_headers:?selected:,par t=foranyaddress $h_to:\{comma}$h_cc:\{comma}$h_bcc:?selected:,part =not delivered?selected:,part=error_message?selected:,p art=$h_X-Spam-Status:?selected:,part=$h_X-Spam-Bar:?selected:,part=$h_X-Spam-Score:?selected:,number,match=is?selected:,match=m atches?selected:,match=contains?selected:,match=do es not contain?selected:,match=begins?selected:,match=end s?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,o pt=or?selected:,opt=and?selected:,number,number) filtername=$FORM{'filtername'}

    to

    ,number,number,part=$header_from:?selected:,part=$ header_subject:?selected:,part=$header_to:?selecte d:,part=$reply_address:?selected:,part=$message_bo dy?selected:,part=$message_headers?selected:,part= foranyaddress $h_to:\{comma}$h_cc:\{comma}$h_bcc:?selected:,part =not delivered?selected:,part=error_message?selected:,p art=$h_X-Spam-Status:?selected:,part=$h_X-Spam-Bar:?selected:,part=$h_X-Spam-Score:?selected:,number,match=is?selected:,match=m atches?selected:,match=contains?selected:,match=do es not contain?selected:,match=begins?selected:,match=end s?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,o pt=or?selected:,opt=and?selected:,number,number) filtername=$FORM{'filtername'}


    Better yet, just apply this patch

    http://koston.org/x3_bodyheaderfilter.patch
    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.

Similar Threads & Tags
Similar threads

  1. WHM option to filter mails by body count for Spam Assassin
    By Kent Brockman in forum Archived Feature Requests
    Replies: 11
    Last Post: 05-01-2012, 10:22 AM
  2. Stop sending out spam with word filter in body
    By idagroup in forum E-mail Discussions
    Replies: 7
    Last Post: 02-08-2011, 06:12 PM
  3. message body end in cPanel filter pages
    By SMG in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 04-24-2010, 05:32 AM
  4. email body filtering
    By net4me in forum E-mail Discussions
    Replies: 0
    Last Post: 01-23-2007, 09:11 AM
  5. blank email body
    By mmancini in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-10-2005, 07:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube