Great Circle Associates Majordomo-Users
(August 1996)
 

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

Subject: Advertise pattern matching.
From: Murray Jones <Murray . Jones @ scitec . com . au>
Organization: SCITEC LIMITED
Date: Wed, 14 Aug 1996 13:39:04 +1000
To: majordomo-users @ greatcircle . com

Gudday,

I've recently installed Majordomo v1.93, with Perl v5.002 on HP-UX
10.01.

I am trying to set the advertise field in my <list>.config files so that
only email addresses in the local domain can receive output from the
"lists" command.

I have read numerous references on how it should work - but even the
simplest form of pattern still seems to fail eg.

advertise         <<  END
/scitec\.com\.au/
END

My understanding is that this pattern will allow any email address
containing the string "scitec.com.au" to receive output, alas, it does
not. I have confirmed that my test email address includes the domain, by
adding the following line to the "majordomo" script:

#this is in the do_list function

                if ($'config_opts{$list, 'advertise'} ne '') {
                   @array = split(/\001/,$'config_opts{$list,
'advertise'});
                   foreach $i (@array) {
                      $command = "(qq~$reply_addr~ =~ $i)";
    #debugging statement added by M.Jones
    printf REPLY "This is the command %s\n", $command;
                      $result = 1, last if (eval $command);
                   }
                } else { $result = 1; }

Output is:
 This is the command (qq~Murray.Jones@scitec.com.au~ =~
/scitec\.com\.au/)

Any help much appreciated ,

-- 
Murray Jones	| Suzuki Across - It's like having an angry
R&D Sys Admin	| swarm of hornets smack-bang between your
SCITEC LIMITED	| legs - only it doesn't itch as much!
Lane Cove, NSW	| mailto:Murray.Jones@scitec.com.au
(02) 9428 9512	| http://www.scitec.com.au


Follow-Ups:
Indexed By Date Previous: Thanks but still not working quite right
From: Paul Schneider <p-schne@uiuc.edu>
Next: Long Address unsubscribe help needed
From: katrina@cia.com.au (Katrina Ritchie)
Indexed By Thread Previous: Thanks but still not working quite right
From: Paul Schneider <p-schne@uiuc.edu>
Next: Re: Advertise pattern matching.
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com