Great Circle Associates Majordomo-Users
(September 2003)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Problems running majordomo.pl using restrict2domain-post.0 patch
From: Chad Martin <chad @ tharasix . com>
Date: Mon, 08 Sep 2003 16:10:49 -0500
To: Steve Rifkin <steve410 @ cs . jhu . edu>
Cc: majordomo-users @ greatcircle . com
References: <200309081909.h88J9rFL019108@blaze.cs.jhu.edu>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030708

Steve Rifkin wrote:
> I've finally patched (thanks to Peter Dumpert and Deb for your help with that) 
> my majordomo.pl and config_parse.pl files to contain the code for 
> restrict2domain-post.0 (so, that I can restrict all incoming mail to a list to a 
> specific domain.)
> 
> I made the changes to the two files by hand.
> 
> When I try to send to a list now, I get an error:
> 
> "syntax error at /etc/local/mail/majordomo-1.94.5/majordomo.pl line 763, near 
> "else if"
> 
> and I'm not sure why.  I'm not a perl person, so I pretty much just copied and 
> pasted the code (see below) into the appropriate place.  Can anyone see where my 
> error is?   Line 763, as referenced in the error, is the "else if 
> (&main'addr_match($subscriber, $_," that you'll see in section below.

Perl doesn't have else if, it has elsif.  Try changing it to that.

Chad Martin



References:
Indexed By Date Previous: Re: Problems running majordomo.pl using restrict2domain-post.0 patch
From: Steve Rifkin <steve410@cs.jhu.edu>
Next: Re: Problems running majordomo.pl using restrict2domain-post.0 patch
From: Daniel Liston <dliston@sonny.org>
Indexed By Thread Previous: Re: Problems running majordomo.pl using restrict2domain-post.0 patch
From: Daniel Liston <dliston@sonny.org>
Next: Re: Problems running majordomo.pl using restrict2domain-post.0 patch
From: Steve Rifkin <steve410@cs.jhu.edu>

Google
 
Search Internet Search www.greatcircle.com