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
|
|