Hi I tried to add the regular expression sales@.* to the ban list for one of my lists and got: An error occurred: Invalid Parameter "email": Expected a valid email address or regular expression, got sales@.*.
Now, 'sales@.*' _is_ a valid regular expression --- so why did it fail?
(I wanted to ban that set of addresses, because we get an awful lot of chinese spam from sales@some-company-name where the company name is variable)
Peter C
On 8/12/22 16:36, Peter Chubb wrote:
Hi I tried to add the regular expression sales@.* to the ban list for one of my lists and got: An error occurred: Invalid Parameter "email": Expected a valid email address or regular expression, got sales@.*.
Now, 'sales@.*' _is_ a valid regular expression --- so why did it fail?
A regular expression must begin with ^
for the ban list as in
^sales@
. Strings that start with ^
are interpreted as regular
expressions and those that don't are interpreted as email addresses.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Peter Chubb