Great Circle Associates Majordomo-Users
(September 1995)
 

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

Subject: Re: String matching?
From: peter @ i3 . informatik . rwth-aachen . de (Peter Heimann)
Date: Mon, 18 Sep 95 14:53:29 +0200
To: majordomo-users @ GreatCircle . com
Cc: mjb @ triumph . cs . utah . edu

Mark J Bradakis writes
> We're running version 1.92 here, and it seems that when checking lists
> for users, majordomo claims that "user" is not in the list, for unsubscribes
> and private functions
[...]
> It does match if there is an at sign in the address, user@host, but a
> lone user name fails.

I once had a similar problem with majordomo 1.93 when I set 
"mungedomain = yes" in a list's config file. I could subscribe addresses 
that didn't contain "@", but was unable to unsubscribe them.

The problem might be in the "main'addr_match" subroutine in "majordomo.pl":
if @addr1 does not contain a "@", $addr1 equals 0, and the test in line 171
fails:
          if ( $#addr1 == $#addr2 && $#addr1 == 1 &&
				     ^^^^^^^^^^^^
               $addr1[0] eq $addr2[0] && (index($addr1[1], $addr2[1]) >= $[))

Possible fix (WARNING: untested):
Delete lines 175-176
          } else {
            return(undef);
Thus, the "return($a1[0] eq $a2[0]);" comes into effect for the else case 
as well.

I don't know whether the 1.92 "main'addr_match" subroutine is any different.

--
Peter Heimann

Lehrstuhl fuer Informatik III        peter@i3.informatik.rwth-aachen.de
RWTH Aachen





Indexed By Date Previous: Re: HELP( BOUNCE faculty: Admin request)
From: Rudy Amid <rudy@hcl.com>
Next: Re: String matching?
From: dwolfe@risc.sps.mot.com (Dave Wolfe)
Indexed By Thread Previous: Re: String matching?
From: dwolfe@risc.sps.mot.com (Dave Wolfe)
Next: Returned mail: unknown mailer error 1 (fwd)
From: Jesse Hirsh <jesse@lglobal.com>

Google
 
Search Internet Search www.greatcircle.com