[Mailman-Users] posting filters query

jtrigg at huiekin.org jtrigg at huiekin.org
Mon Apr 23 18:10:49 CEST 2001


On Fri, Apr 20, 2001 at 05:43:48PM -0700, Jason Wright wrote:
> i'm trying to set things up so that *@example.com can post to the lists but
> all other addresses are held for approval as explained here:
> 
> 	http://mail.python.org/pipermail/mailman-users/2001-February/009828.html
> 
> teo de hesselle responded, suggesting using a regex:
> 
> 	http://mail.python.org/pipermail/mailman-users/2001-February/009835.html
> 
> neither post says exactly which configuration option that regex should go in,
> but it seems to me that 'posters' is the correct place.  if i use the
> following
> 
> 	moderated = 0
> 	member_posting_only = 1
> 	posters = ['.*@example\\.com']
> 
> and post from jwright at example.com, an address which is not subscribed to the
> list, the post is held for approval.
> 
> if i change 'posters' to
> 
> 	posters = ['.*@example\\.com', 'jwright at example.com']
> 
> then posts from jwright at example.com go through, so it seems that 'posters' 
> doesn't accept regular expressions.
> 
> am i tweaking the wrong settings?

(I haven't seen an answer come past, so here is one.)  No, you're just
tweaking them incorrectly.  You have one backslash too many;
'.*@example\\.com' will match example\.com so you want
'.*@example\.com'.  (The jwright case works because the . matches any
character.)

Jim Trigg
Itinerant List Admin
-- 
/"\                           
\ /     ASCII RIBBON CAMPAIGN 
 X       HELP CURE HTML MAIL  
/ \                           




More information about the Mailman-Users mailing list