On Sun, Aug 30, 2015 at 02:06:26AM -0700, Nelson Kelly wrote:
[...]
> Inserted the above recommended RegExp string into the ban_list, and 
> within minutes subscribe request bot spam began showing up in the mod 
> queue.
> 
> All the new spams appear to be of a slightly different format from which 
> I described in the OP.
> 
> blahblah+blah-blah-blah-blah-12345...@gmail.com
> blah_12_34+blah-blah-blah-blah-12345...@hotmail.com

Try this regex instead:

^.*\+.*?\d{3,}@


The meaning of it is:

^       start of string
.*      any number of characters
\+      a literal plus sign
.*?     any number of characters (non-greedy)
\d{3,}  at least three digits
@       a literal at sign


I'm not sure if the difference between "non-greedy" .*? and "greedy" .* 
is important in this case.

Good luck!



-- 
Steve
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
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