Great Circle Associates Majordomo-Users
(January 1996)
 

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

Subject: Noadvertise headache!!!
From: Glen <glen @ dps . sdsu . edu>
Date: Wed, 10 Jan 96 18:26:42 PST
To: majordomo-users @ greatcircle . com

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

Indexed By Date Previous: Approve Script - FEATURE SUGGESTED
From: Brock Rozen <brozen@netvoyage.net>
Next: Re: Unsubscribing Complex Address
From: Hugh Ferguson <hugh@FundSERV.COM>
Indexed By Thread Previous: Re: Approve Script - FEATURE SUGGESTED
From: "Alan Millar" <amillar@bolis.sf-bay.org>
Next: Majordomo v1.93 Installation Problems
From: Gregg Graubins <gregg@wwti.iway.net>

Google
 
Search Internet Search www.greatcircle.com