Wildcard in email filters subject, etc.?
Greetings!
I am trying to filter out emails with subjects such as "Lose 25 pounds" or "Burn 123 calories," which change every time to "Lose 10 pounds," etc. Can I use a wildcard in email filters for the numbers? I've tried Subject contains Lose * pounds and that doesn't work. Neither does Subject contains Lose % pounds. Did I miss a document page somewhere or is this just not possible and maybe use regex? Please advise.
Thanks in advance.
~Kira
-
or this might be better in case the spammer decides to drop his proper writing skills and go with lower case ;) ^[Ll]ose \d+ [Pp]ounds$0 -
Thanks!! lol there are no proper writing skills to drop, in most cases : ) What about getting error messages such as this one, when testing filters. This filter is no longer than any others that I can see, is there a character limit or ? Pattern = \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.stream\b **** debug string too long - truncated **** I am getting the **truncated** message on some other filters also. **** debug string too long - truncated **** ) or $message_body contains our pill and then it goes on with the 3 more messages for the wildcards I had input, which I'm going to delete. 0 -
debug string too long - truncated
Hello, This error message should not impact the filter itself. As I understand, it's referring to a limit related to Exim's debugging functionality. That said, you could try browsing to "WHM >> Exim Configuration Manager >> Advanced Editor" and increasing the value for the "message_body_visible" option to avoid this error message. Thank you.0 -
Maybe it's because I have too many things to check for in one filter. I'll break those up a bit. Thanks so much for all your help!! Everyone have a happy and safe 4th : ) 0
Please sign in to leave a comment.
Comments
5 comments