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!
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!
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
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
That worked swell.
Hello Nick,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
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.