🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81534

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

#81534
From: Julien ÉLIE
Date: Sat, 04 Jul 2009 16:15
42 lines
3145 bytes
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;


-- 
Julien ÉLIE

« Some joys are better expressed in silence as a smile holds more meaning
  than words. » 
Technical Details
Message-ID: <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.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!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>

Show Full Headers
Complete Article Headers
Message-ID: <h2nv6v$ue4$1@news.trigofacile.com>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Sat, 4 Jul 2009 18:15:23 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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>
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.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 42
NNTP-Posting-Host: aaubervilliers-151-1-47-160.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=response
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1246724127 31172 83.114.133.160 (4 Jul 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 4 Jul 2009 16:15:27 +0000 (UTC)
In-Reply-To: <h06c9j$tv7$1@news.trigofacile.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049