[Mailman-Users] ISO RegExp example to block bot subscribe requests

Mark Sapiro mark at msapiro.net
Sun Aug 30 03:32:21 CEST 2015


On 08/27/2015 08:32 PM, Stephen J. Turnbull wrote:
> Woody Mon via Mailman-Users writes:
> 
>  > So I tried entering RegExp ^.*+ but Mailman rejected this entry.
> 
> That's illegal syntax for a regexp because "+" is an operator.
> 
> The version you want is "^.*\+".  However, that is a very bad idea if
> you have any posters with email skills, because embedding "+" in the
> return address for outgoing mail is a common way to identify the
> source of incoming replies.
> 
> A more conservative regexp would be "^[a-z]+\+[0-9]+@" which will
> catch the pattern of LETTERS "+" DIGITS.


Also, see my reply to Nelson Kelly at
<https://mail.python.org/pipermail/mailman-users/2015-August/079671.html>.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list