On 04/08/2014 01:58 PM, Hung Phan wrote:
> Can we add email address into the Ban List based on word pattern?


Yes. You may put any valid Python regular expression beginning with ^ in
the ban list. It will be matched case-insensitively.


> If we want to prevent any emails that contain the word "sexy", will this
> works?
> *sexy*


No. Regular expressions are not the same as globs. What you would need
in that case is

^.*sexy.*

or simply

^.*sexy

since you don't care what comes after sexy. See
<https://docs.python.org/2/library/re.html>

All this assumes that what you mean by 'prevent any emails that contain
the word "sexy"' is prevent any addresses containing the word "sexy"
from subscribing to the list.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to