lhite Posted October 5, 2011 Share Posted October 5, 2011 i have a mail filter set up that works about 99% of the time, but mysteriously fails every once in a while for no reason that i can see. i can take emails for which the filter should have worked but didn't and run them through the filter test in the control panel and it will tell me that the filter worked -- but in fact, it didn't. further, i can see other emails virtually identical to the one for which the filter didn't work, and for them the filter did work correctly. it almost looks like for whatever reasons, occasionally an email is simply not processed by the rules. could that be possible? what other explanation could there be for what i'm seeing? lee Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted October 6, 2011 Share Posted October 6, 2011 When testing the filter in cPanel are you just using the body of the email and/or sender, versus pasting in the entire email with header? I have seen this a few times and most were related to something simple in the header possibly triggering another filter first. Since cPanel now allows easy sorting of your filters, and order does matter, I would move this filter to the top of the list to see if it helps. You can also open a ticket with the full email example and we will gladly assist in testing the issue for you. Quote Link to comment Share on other sites More sharing options...
lhite Posted October 6, 2011 Author Share Posted October 6, 2011 interesting -- when i test the filters with the entire message including the header, it does indeed fail to work properly. but it's not because an earlier filter triggers first. i get the message that "Filtering did not set up a significant delivery. Normal delivery will occur". when i test with just the message body, it works as it should and i get the message "Filtering set up at least one significant delivery or other action. No other deliveries will occur", which is exactly as it should work. it's as if something in the header is causing the filter evaluation process not to work the same as when the header is not included. like maybe something in the header is causing the evaluation process to abend. i'm also getting a message in the filter window saying "**** debug string too long - truncated ****" -- i get that in both cases, using the header or not using it. what does that mean? it doesn't really tell me where the string is truncated, or for that matter what string it's referring to. and in this particular example, the filter will hit about 40 chars from the end of the message, so it would seem that the "truncated" message is not relevant. Quote Link to comment Share on other sites More sharing options...
lhite Posted October 6, 2011 Author Share Posted October 6, 2011 (edited) ok, did some more testing and i think the problem is related to the length of the message. i can test the filters with just the message itself and the filter works. but then i can just add some arbitrary text in to the middle of the message, forcing the point at which the filter hits further down in the message, and that will cause the filter to fail. so...... it would seem that the filters are only applied to the first X characters of a message (and X appears to be right around 4096 based on my limited testing). if that's true, is there anyway to increase that number? or any way to tell the filter to at least ignore the header stuff? Edited October 6, 2011 by lhite Quote Link to comment Share on other sites More sharing options...
lhite Posted October 11, 2011 Author Share Posted October 11, 2011 just found out from tech support that there is indeed a 5000 character limit on how much of the email message is processed in the filter evaluation -- so that explains why my filters were occasionally failing. the part of the message that triggered the filter was beyond the first 5000 chars. this limit is set at the server level, and so on shared servers, there's no way to change it at the individual web site level. Quote Link to comment Share on other sites More sharing options...
Head Guru Posted October 11, 2011 Share Posted October 11, 2011 Just for you we increased this limit to 7000 on your server. TCH.... rocks? Quote Link to comment Share on other sites More sharing options...
lhite Posted October 11, 2011 Author Share Posted October 11, 2011 yes you did, and thank you! i wasn't going to mention that on a public board as i didn't want to be responsible for a slew of other users demanding that their server configuration be changed as well. and yes indeed, TCH Rocks! Quote Link to comment Share on other sites More sharing options...
Head Guru Posted October 11, 2011 Share Posted October 11, 2011 Thank you for your business. Please remember to tell your friends about TCH! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.