Re: [Mailman-Users] Question about ban_list Regular Expression
Barry Finkel wrote: >I have a question about the ban_list regex. In a reply on >Tue, 24 Apr 2007 07:59:28 Mark Sapiro wrote > >> So set Privacy options...->Sender filters->generic_nonmember_action >> to Accept so anyone can post and set Privacy options...->Subscription >> rules->ban_list to a regex that matches all addresses not in your >> domain. E.g., >> >> ^.*@(?!example\.com)$ >> >> or if you want to allow sub-domains within your domain >> >> ^.*@(.*\.)?(?!example\.com)$ > >If I want subdomains of example.com and anl.gov to be able to >subscribe (and to ban other domains), is this the correct regex for >ban_list? > > ^(regex|regex) > >i.e., > > ^(.*@(.*\.)?(?!example\.com)$|.*@(.*\.)?(?!anl\.gov)$) No. The first problem is that my original regexps are wrong. I thought I had tested them, but apparently I hadn't. The simple domain without subdomains regexp should be ^.*@(?!example\.com$) The domain with subdomains regexp should be ^.*@(?!(.*\.)?example\.com$) That said, the ORing of these regexps as in ^(.*@(?!(.*\.)?example\.com$)|.*@(?!(.*\.)?example\.com$)) or even ^.*@((?!(.*\.)?example\.com$)|(?!(.*\.)?anl\.gov$)) will always match because these match addresses that don't end with something and if you OR together two different somethings, every address doesn't end with at least one of them so every address matches. You would need something like ^.*@(?!(.*\.)?(example\.com|anl\.gov)$) (and I did test that this time) -- Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9
Re: [Mailman-Users] Question about ban_list...
Bryan Carbonnell wrote: >I applied the ht://dig patches to 2.1.7 on my test box with no >problems. IIRC there were just a few ofsets for a few hunks. > >So it appears to apply cleanly. > > > Agreed... the upgrade seemed to go very smoothly last night. Best, --Glenn -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] Question about ban_list...
On 3 Jan 2006 at 21:45, Glenn Sieb wrote: > Ok--then I guess on my 2.1.5 server, the moderators must have added > people, without thinking, using the web interface--I'll have to upgrade > to 2.1.7 as soon as I see the ht://dig patches come out! I applied the ht://dig patches to 2.1.7 on my test box with no problems. IIRC there were just a few ofsets for a few hunks. So it appears to apply cleanly. -- Bryan Carbonnell - [EMAIL PROTECTED] I am a nobody, and nobody is perfect; therefore, I am perfect. -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] Question about ban_list...
Mark Sapiro said the following on 1/3/2006 9:39 PM: > Yes. > > Note also that the ban_list applies to more things as of 2.1.7. From > NEWS: > > - The list's ban_list now applies to address changes, admin mass > subscribes and invites, and to confirmations/approvals of address > changes, subscriptions and invitations. > Ok--then I guess on my 2.1.5 server, the moderators must have added people, without thinking, using the web interface--I'll have to upgrade to 2.1.7 as soon as I see the ht://dig patches come out! Thanks, Mark! Best, --Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ~Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] Question about ban_list...
Glenn Sieb wrote: >Let's say I want no users on a mailing list from sitename.com. So, I >have a ban_list address of: > >[EMAIL PROTECTED] > >Is this the correct form of RegExp? Yes. Note also that the ban_list applies to more things as of 2.1.7. From NEWS: - The list's ban_list now applies to address changes, admin mass subscribes and invites, and to confirmations/approvals of address changes, subscriptions and invitations. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp