Hi all...
From: Patrick O'Brien <pobrien@cfa.harvard.edu>
In issuing the lists command, I use an account that is not on any
of the lists. But there is always one list (and it can be *any*
list) that shows up in a lists command, even though its noadvertise
regexp is /.*/
Although I never tested it to that extent, my lists did the same
thing. I got pretty frustrated with this too, so I went in, knowing
nothing about PERL, to the majordomo script.
I saw some FAQ or something that said something about the thing
always showing you a list you were on, and removing something
around line 890. I made the change, it had no effect.
But then I saw this, starting at line 880 in majordomo:
if ($'config_opts{$list, 'advertise'} ne '') {
@array = split(/\001/,$'config_opts{$list, 'advertise'});
foreach $i (@array) {
$command = "(qq~$reply_addr~ =~ $i)";
$result = 1, last if (eval $command);
}
THIS LINE --> } else { $result = 1; }
@array = ();
if ($result) {
@array = split(/\001/,$'config_opts{$list, 'noadvertise'});
foreach $i (@array) {
$command = "(qq~$reply_addr~ =~ $i)";
$result = 0, last if (eval $command);
}
}
Well, on a whim, knowing nothing, I changed that line to:
} else { $result = 0; }
and now "noadvertise" works *exactly* like it's supposed to no
matter what. Just lucky, I have no clue what the side effects
are, but at least I can use the noadvertise thing now!
Go figure!
Glen
glen@sdsu.edu
|
|