From majordomo-workers-owner@greatcircle.com Wed Nov 6 12:08:20 2002 Received: from minerva.fmed.edu.uy (minerva.fmed.edu.uy [164.73.144.2]) by mycroft.greatcircle.com (Postfix) with ESMTP id 29D8D195A7C for ; Wed, 6 Nov 2002 12:08:18 -0800 (PST) Received: (from root@localhost) by minerva.fmed.edu.uy (8.9.3/8.9.3) id UAA23421 for majordomo-workers@greatcircle.com; Wed, 6 Nov 2002 20:15:35 -0300 Received: from there (lmichele@hipocrates.fmed.edu.uy [164.73.144.101]) by minerva.fmed.edu.uy (8.9.3/8.9.3) with SMTP id UAA23413 for ; Wed, 6 Nov 2002 20:15:32 -0300 Message-Id: <200211062315.UAA23413@minerva.fmed.edu.uy> Content-Type: text/plain; charset="iso-8859-1" From: Luis Michelena Reply-To: uylug@fmed.edu.uy To: majordomo-workers@greatcircle.com Subject: Reg. Exp in address matching Date: Wed, 6 Nov 2002 17:12:49 -0300 X-Mailer: KMail [version 1.3.2] Organization: Facultad de Medicina MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS perl-11 X-Archive-Number: 200211/1 X-Sequence-Number: 12 Reading in Majordomo help (on the list's owner doc) found that using regexp was posible for some matchings, but when I tried to put a rule to let everybody in a domain post to a list, it didn't work, then i found reading the majordomo.pl file, on line 188 (in the definition of addr_match) the line that follows: return($a1[0] eq $a2[0]); so it doesn't let use regexp in address matching, I was thinking that colud be better to use: return($a1[0] =~ /^$a2[0]$/); Have made some test, and it seems to work fine, but I would like to know if there is some problem in changing this (like security fouls or mal function in some rare cases) These test were made in majordomo-1.94.5. Thank you for reading this lines, and please forgive my lousy english but is not my mother tongue. greetings, Luis Michelena Postmaster Facultad de Medicina Universidad de la Republica Uruguay From majordomo-workers-owner@greatcircle.com Wed Nov 6 13:10:51 2002 Received: from rudra3.ccsf.cc.ca.us (rudra3.ccsf.cc.ca.us [147.144.3.238]) by mycroft.greatcircle.com (Postfix) with SMTP id 160851959EF for ; Wed, 6 Nov 2002 13:10:50 -0800 (PST) Received: from sol.ccsf.cc.ca.us by rudra3.ccsf.cc.ca.us via smtpd (for mycroft.greatcircle.com [198.102.244.36]) with SMTP; 6 Nov 2002 21:10:50 UT Received: from localhost (jjah@localhost) by sol.ccsf.cc.ca.us (8.11.6+Sun/8.11.6) with ESMTP id gA6LAc025844; Wed, 6 Nov 2002 13:10:38 -0800 (PST) Date: Wed, 6 Nov 2002 13:10:38 -0800 (PST) From: "Joe R. Jah" To: Luis Michelena Cc: Subject: Re: Reg. Exp in address matching In-Reply-To: <200211062315.UAA23413@minerva.fmed.edu.uy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200211/2 X-Sequence-Number: 13 On Wed, 6 Nov 2002, Luis Michelena wrote: > Date: Wed, 6 Nov 2002 17:12:49 -0300 > From: Luis Michelena > To: majordomo-workers@greatcircle.com > Subject: Reg. Exp in address matching > > > Reading in Majordomo help (on the list's owner doc) found that using regexp > was posible for some matchings, but when I tried to put a rule to let > everybody in a domain post to a list, it didn't work, then i found reading > the majordomo.pl file, on line 188 (in the definition of addr_match) the line > that follows: > return($a1[0] eq $a2[0]); > > so it doesn't let use regexp in address matching, I was thinking that colud > be better to use: > return($a1[0] =~ /^$a2[0]$/); > > Have made some test, and it seems to work fine, but I would like to know if > there is some problem in changing this (like security fouls or mal function > in some rare cases) > These test were made in majordomo-1.94.5. > Thank you for reading this lines, and please forgive my lousy english but is > not my mother tongue. You may want to use this patch: ftp://ftp.ccsf.org/majordomo-patches/1.94.5/restrict2domain.0 Please read the patch for more information. Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@sol.ccsf.cc.ca.us From majordomo-workers-owner@greatcircle.com Thu Nov 7 16:03:53 2002 Received: from minerva.fmed.edu.uy (minerva.fmed.edu.uy [164.73.144.2]) by mycroft.greatcircle.com (Postfix) with ESMTP id 68ABB1961F7 for ; Thu, 7 Nov 2002 16:03:51 -0800 (PST) Received: (from root@localhost) by minerva.fmed.edu.uy (8.9.3/8.9.3) id AAA22666; Fri, 8 Nov 2002 00:11:20 -0300 Received: from there (lmichele@hipocrates.fmed.edu.uy [164.73.144.101]) by minerva.fmed.edu.uy (8.9.3/8.9.3) with SMTP id AAA22659; Fri, 8 Nov 2002 00:11:18 -0300 Message-Id: <200211080311.AAA22659@minerva.fmed.edu.uy> Content-Type: text/plain; charset="iso-8859-1" From: Luis Michelena Reply-To: uylug@fmed.edu.uy To: "Joe R. Jah" Subject: Re: Reg. Exp in address matching Date: Thu, 7 Nov 2002 21:08:33 -0300 X-Mailer: KMail [version 1.3.2] Cc: References: In-Reply-To: Organization: Facultad de Medicina MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS perl-11 X-Archive-Number: 200211/3 X-Sequence-Number: 14 Thanks, it seems what i need right now, but would like to now if the change I proposed would had worked also, because it seems a pretty minimalist change (that it seems to be covered by the help already, at least on the list-owner-info file, am I wrong?, it doesn't says it explicitly, but let the user understand it (I mean, it made me understand that)), and would help to get other things done, like letting people with the 'michel' text on the user side of the address (that would be my relatives ;) ). The patch you propossed works well with the munge domain option? Regards, Luis Michelena El Mié 06 Nov 2002 18:10, Joe R. Jah escribió: > On Wed, 6 Nov 2002, Luis Michelena wrote: > > Date: Wed, 6 Nov 2002 17:12:49 -0300 > > From: Luis Michelena > > To: majordomo-workers@greatcircle.com > > Subject: Reg. Exp in address matching > > > > > > Reading in Majordomo help (on the list's owner doc) found that using > > regexp was posible for some matchings, but when I tried to put a rule to > > let everybody in a domain post to a list, it didn't work, then i found > > reading the majordomo.pl file, on line 188 (in the definition of > > addr_match) the line that follows: > > return($a1[0] eq $a2[0]); > > > > so it doesn't let use regexp in address matching, I was thinking that > > colud be better to use: > > return($a1[0] =~ /^$a2[0]$/); > > > > Have made some test, and it seems to work fine, but I would like to know > > if there is some problem in changing this (like security fouls or mal > > function in some rare cases) > > These test were made in majordomo-1.94.5. > > Thank you for reading this lines, and please forgive my lousy english but > > is not my mother tongue. > > You may want to use this patch: > > ftp://ftp.ccsf.org/majordomo-patches/1.94.5/restrict2domain.0 > > Please read the patch for more information. > > Regards, > > Joe