[Mailman-Users] Default ban_list for new lists

Edward Ned Harvey eharvey at lyricsemi.com
Tue Sep 16 03:34:33 CEST 2008


> Put
> 
> DEFAULT_BAN_LIST = ['^(?!(^.*@mydomain.com))']
> 
> (or whatever you want) in mm_cfg.py. Then, in order to make it work,
> find the lines
> 
>         # Ban lists
>         self.ban_list = []
> 
> in the definition of the InitVars() method in Mailman/MailList.py and
> change the second line to
> 
>         self.ban_list = mm_cfg.DEFAULT_BAN_LIST
> 
> I'm generally opposed to "configuration creep", but if people think
> this is a worthwhile feature, speak up and I'll consider it for
> Mailman 2.2.

Wow, that's like the awesomest answer I ever had to a random question in a
user group.  Thanks!

I think my situation is unusual enough, that I'm not suggesting it as a
feature for general usage.  Although, I'm excited enough about this, I'm
likely to repeat it several different times, at different companies.  ;-)



More information about the Mailman-Users mailing list