[prev in list] [next in list] [prev in thread] [next in thread] 

List:       majordomo-users
Subject:    Problem in main'addr_match ? (Was: Forwarding bounced messages)
From:       peter () i3 ! informatik ! rwth-aachen ! de (Peter Heimann)
Date:       1995-04-27 10:56:59
[Download RAW message or body]


Mikko Makela is unable to unsubscribe "alt.sys.something" from a list,
though this address appears in the "who" output.


I once had a similar problem 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.

--
Peter Heimann

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic