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 [EMAIL PROTECTED], an address which is not subscribed to the
> list, the post is held for approval.
> 
> if i change 'posters' to
> 
>       posters = ['.*@example\\.com', '[EMAIL PROTECTED]']
> 
> then posts from [EMAIL PROTECTED] 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  
/ \                           

------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to