On 09/25/2015 09:01 PM, Mark Sapiro wrote:
> 
> Here's another idea.
> 
> Find the following in /path/to/mailman/Mailman/MailList.py
> 
>     def GetBannedPattern(self, email):
>         """Returns matched entry in ban_list if email matches.
>         Otherwise returns None.
>         """
>         return self.GetPattern(email, self.ban_list)
> 
> and change it to
> 
> bad_users = ['joeblow@gmailcom',
>              'johndoe@gmailcom',
>              'jackblack@gmailcom',
>              ...                       (the rest of the addrs to ban)
>             ]
...


Ooops. In the above addition, the bad_users line needs to be indented 4
spaces to line up with the following '    def ...'.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
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