🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81549

Re: Another INN 2.5.0 rc2 bug - control.ctl processing

#81549
From: D. Stussy
Date: Sun, 05 Jul 2009 01:31
43 lines
3104 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:h2nv6v$ue4$1@news.trigofacile.com...
> Hi D. Stussy,
>
> > I understood your wish for the "log" action in checkgroups and
> > I will try to address it.
>
> I think this patch should fix the issue you reported.
>
> Index: control/modules/checkgroups.pl
> ===================================================================
> --- control/modules/checkgroups.pl      (révision 8531)
> +++ control/modules/checkgroups.pl      (copie de travail)
> @@ -36,7 +36,9 @@
>          my ($ngname, $ngdesc) = split(/\s+/, $_, 2);
>          my $charset_newsgroup = $charset_message;
>
> -        next if ($ngname =~ /$exclusionpats/ or $ngname =~ /$droppats/);
> +        next if ($ngname !~ /$newsgrouppats/);
> +        next if ($exclusionpats and $ngname =~ /$exclusionpats/);
> +        next if ($droppats and $ngname =~ /$droppats/);
>
>          # Find the right charset if absent or forced by control.ctl.
>          foreach (@$charset_from) {
> @@ -62,7 +64,10 @@
>          push(@newbody, $ngname."\t".$ngdesc);
>      }
>
> -    if ($action eq 'mail' and $#newbody >= 0) {
> +    # We do not go on if there is no changes to do.
> +    return if ($#newbody < 0);
> +
> +    if ($action eq 'mail') {
>          my $mail = sendmail("checkgroups by $sender");
>          print $mail "$sender posted the following checkgroups
message:\n\n";
>          print $mail map { s/^~/~~/; "$_\n" } @headers;
>

If I don't comment on this during next weekend, ping me.  I'm going to be
gone for a week, and I'm already packing for my trip.

Technical Details
Message-ID: <h2ovql$scp$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com> <gvsgbm$gfm$1@aux.snarked.org> <gvtjcl$nmf$1@news.trigofacile.com> <gvut8f$l3m$1@aux.snarked.org> <gvv0ha$21b$1@news.trigofacile.com> <gvv6uq$mvv$1@aux.snarked.org> <h004v2$4d1$1@news.trigofacile.com> <h025go$vin$1@aux.snarked.org> <h02hfe$bki$1@news.trigofacile.com> <h04a6c$44k$1@aux.snarked.org> <h06c9j$tv7$1@news.trigofacile.com> <h2nv6v$ue4$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <h2ovql$scp$1@snarked.org>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Sat, 4 Jul 2009 18:31:36 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com> <gvsgbm$gfm$1@aux.snarked.org> <gvtjcl$nmf$1@news.trigofacile.com> <gvut8f$l3m$1@aux.snarked.org> <gvv0ha$21b$1@news.trigofacile.com> <gvv6uq$mvv$1@aux.snarked.org> <h004v2$4d1$1@news.trigofacile.com> <h025go$vin$1@aux.snarked.org> <h02hfe$bki$1@news.trigofacile.com> <h04a6c$44k$1@aux.snarked.org> <h06c9j$tv7$1@news.trigofacile.com> <h2nv6v$ue4$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 43
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-50-95.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1246757525 29081 71.118.50.95 (5 Jul 2009 01:32:05 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sun, 5 Jul 2009 01:32:05 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478