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.