Jason LaMar wrote: >If I wanted to set up my Mailman spam filter to only accept list submissions >for approval from [EMAIL PROTECTED] (for example) -- and automatically discard >messages sent from any other domain -- what would be the easiest way to set >that up in the spam filter rules?
This is complicated by the fact that prior to Mailman 2.1.7, header_filter_rules regexps were not compiled in multiline mode, so regexps involving ^ (beginning of line) matches probably won't match in pre-2.1.7 Mailman. So avoiding that issue by using '\n' instead, put the following regexp in Privacy options...->Spam filters->header_filter_rules->Spam Filter Rule 1->Spam Filter Regexp: \nfrom:[EMAIL PROTECTED]@(?!fubar.com[>\s]) and set the action to discard. This pattern matches (case insensitively) a newline followed by from: followed by anything up to and including the first @ followed by anything other than fubar.com and either > or white space (including newline). See <http://docs.python.org/lib/re-syntax.html>. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better 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