I am trying to delete all incoming mail where the "To:" field contains a formal format of a first name, middle initial and last name. I built a regex that passed the validation in http://www.dotnetcoders.com/web/Learnin ... ester.aspx on the provided test case below, but messages still pass through. Any hint where to look would be appreciated. I am using hMailServer V.4.3.1- B253.
My regex is: "[\w]+\s[A-Z]\.\s[\w]+"
A test mail that passes through:
To: "Puke Z. Scumbag" <email@example.com>
I have 2 other rules before this regex one, but they only delete mail on some keyword findings using the "contains" search type.