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