I know this has been discussed in other threads but I thought it best to start a new one to get some definitive responses for what works correctly with regard to specific needed strings. Apologies in advance for the long post.
I have tested the following with intermittent success in a custom rule with:
Rule Source: Header
Rule Type: Regular Expression
... and so on.
I created a similar rule looking for a specific string in the header for the 'sender name' such as:
The header in the email general would be something like:
Return-Path: <firstname.lastname@example.org> for example. The domain always changes but the sender name almost always starts with or contains the same word(s).
I know the syntax above doesn't work. It is only one variation I had tried of just about every format I've been able to find either here in the community or in numerous articles and discussions elsewhere. I was pretty convinced that standard regex strings were not being processed properly in SmarterMail. I tried:
...and just about every other combination I could think of and nothing worked until this one:
I haven't tested a single word or any modifiers like v[i1l]agra yet but I believe this would work as well:
Maybe someone a little more savvy with Regex could add some thoughts here. My concern with the above working syntax is that 'medical' would probably score email@example.com a 999 in this implementation. I assume that I need to modify it to include the leading < to make sure it is part of the regex such as:
...but of course that will only catch the sendername if it immediately follows the "Return-Path: <" such as:
I was hoping to score ANY location of nugenix in the sendername (not domain) for example even if it is:
Return-Path: <get-some-nugenix-for-health but not:
What I need is a regex that will catch <anycharacters+cialis+anyothercharacters+@ but being a regex imbecile I'm not sure what the syntax is to make that happen.