From owner-cvs-all Fri Feb 7 9:56:29 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6C3537B401; Fri, 7 Feb 2003 09:56:22 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D8F343F75; Fri, 7 Feb 2003 09:56:22 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 91F7D95; Fri, 7 Feb 2003 11:56:21 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id DF83E58D6; Fri, 7 Feb 2003 11:53:47 -0600 (CST) Date: Fri, 7 Feb 2003 11:53:47 -0600 From: "Jacques A. Vidrine" To: Peter Wemm Cc: all-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org, legacy-committers@FreeBSD.org Subject: Re: cvs commit: CVSROOT access access.doc access.ports Message-ID: <20030207175347.GA91623@opus.celabo.org> References: <200302071714.h17HEX79066671@repoman.freebsd.org> <20030207173538.D718D2A89E@canning.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030207173538.D718D2A89E@canning.wemm.org> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 07, 2003 at 09:35:38AM -0800, Peter Wemm wrote: > Jacques Vidrine wrote: > > nectar 2003/02/07 09:14:33 PST > > > > Modified files: > > . access access.doc access.ports > > Log: > > OK, I think it is safe to split out src, ports, doc mail now. > > I suppose I shall get duplicates on all-committers, but so it goes. > > all-committers doesn't do duplicates. It merges the lists together and > de-dups the recipients before generating the email. By then it is too late, if you have different email addresses for different `access' files. This could work by having commitmail.pl doing the uniq ... it is doing some already. Something like the following (untested). Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se #! /usr/bin/perl -w # # $FreeBSD: CVSROOT/freebsd/commitmail.pl,v 1.11 2003/02/04 18:32:34 peter Exp $ $list = shift(@ARGV); $mailcmd = "/home/majordomo/wrapper resend.nobm -l $list -f owner-$list -h FreeBSD.org"; #$mailcmd = "/usr/sbin/sendmail -oem -f owner-$list"; %uniq = (); while ($#ARGV > 0) { $access = shift(@ARGV); $access2 = shift(@ARGV); open(ACCESS, "< $access") || open(ACCESS, "< $access2") || exit 75; while () { chop; @words = split; if ($words[0] =~ /^[#\/;]/) { next; } unless (exists($uniq{$words[0]})) { $uniq{$words[0]} = $words[1] || $words[0]; } } close(ACCESS); } $list = join(" ", sort values %uniq); if ($list ne '') { exec "$mailcmd $list"; die "cannot exec `$mailcmd': $!"; } else { exec "cat >/dev/null"; die "cannot exec `cat >/dev/null': $!"; } # Jan 15 09:47:55 hub sendmail[14995]: JAB14995: to=/home/mail/archive/cvs-committers, delay=00:00:00, xdelay=00:00:00, mailer=*file*, stat=Sent # Jan 15 09:48:00 hub sendmail[14995]: JAB14995: to="|/home/mail/mailtogroup.pl ncvs cvs-committers", delay=00:00:05, xdelay=00:00:05, mailer=prog, stat=unknown mailer error 13 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message