View Single Post
Old 3 Sep 2019, 11:00 PM   #23
JamesHenderson
Cornerstone of the Community
 
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 603
Quote:
Originally Posted by BritTim View Post
You should be aware that the above code is exactly equivalent to
Code:
address :domain :regex "From" "linkedin\\.com$",
In both cases you are saying that the domain must end in linkedin.com with anything prior to this being irrelevant. Note that, if you want to ensure that the domain name is not something like xlinkedin.com or xxx.ylinkedit.com (correct, I guess, but maybe overkill) the correct solution depends on the precise details of the regex support provided. It can be quite tricky.
agh, yes of course- thanks for pointing that out.
So I don't really want to use :domain as I want the first character to be either an "@" or a "."

...works out for me because actually I am putting these rules into the UI (minus the double slashes as FM adds them for me) and I cannot find a way to have "domain in the UI.
JamesHenderson is offline   Reply With Quote