Great Circle Associates Majordomo-Users
(June 1995)
 

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

Subject: Re: Majordomo problem with UNSUBSCRIBE - pse help!!
From: leland @ lvande . us . net (Leland E. Vandervort)
Date: Fri, 09 Jun 1995 18:23:58 +0100
To: "Mordechai T. Abzug" <mabzug1 @ gl . umbc . edu>
Cc: majordomo-users @ greatcircle . com

>In article <leland.251.05D72E88@lvande.us.net> you wrote:
>: while (<LIST>) {
>:         if (! &addr_match($subscriber, $_, 
>:                 (&cf_ck_bool($clean_list,"mungedomain") ? 2 : undef))) {
>:                 print NEW $_;
>:         } else {
>

>$_ is the default for many Perl operations; in particular, while (<LIST>) is
>equivalent to while ($_=<LIST>).  At least, this is true for Perl V. 4.036.
>
>I don't know where the problem is (I'm not familiar with your majordomo
>script) but for the next step in your debugging process, try checking what
>those two routines do (addr_match and cf_ck_bool, was it?)  Chances are, the
>problem is there.


&addr_match(<arg1>,<arg2>,[<arg3>])  =  a function to compare 2 arguments 
(in this case addresses) to see if they match.  <arg3> is optional and is 
used to extend the matching criteria to a subsrtring of <arg2> (in this case 
effectively making the addresses "user@host.domain.com" and 
"user@domain.com" the same for comparison purposes...).  The function 
returns either a value equated value (arg1 eq arg2), or returns undefined 
(null or logical false).

I have not yet been able to locate the code for the function &cf_ck_bool()), 
but it appears to be a multipurpose control function to handle substring 
extractions.... but I may be wrong on this...

anyone?


Leland
leland@lvande.us.net
---------------------------
http://lvande.us.net/
http://www.innotts.co.uk/~lelandv/
---------------------------


   
      



Follow-Ups:
Indexed By Date Previous: Removing Received: line from header and others...
From: Raul Zighelboim <mango@communique.net>
Next: back notes?
From: A Hyman - OISE/CSG <ahyman@oise.on.ca>
Indexed By Thread Previous: Re: Removing Received: line from header and others...
From: "Marko Toivanen - co-moderator of FEYERABEND on majordomo@lists.village.virginia.edu" <mtoivane@cc.joensuu.fi>
Next: Re: Majordomo problem with UNSUBSCRIBE - pse help!!
From: dwolfe@risc.sps.mot.com (Dave Wolfe)

Google
 
Search Internet Search www.greatcircle.com