🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88223

Cleanfeed patch suggestion

#88223
From: admin
Date: Sat, 29 Feb 2020 22:01
30 lines
1816 bytes
Hello!

Those who use cleanfeed, I suggest this patch (against crooks/cleanfeed 
master branch):

-----------------------------------------------------------------
--- cleanfeed	2020-02-17 23:05:35.098900000 +0200
+++ cleanfeed.new	2020-02-17 23:09:07.395002000 +0200
@@ -952,6 +952,7 @@
                      } else {
                          if (not $gr{binary}) {
                              return reject("Binary: misplaced binary");
+                        };
                      }; # End of misplaced binary check
                      # If configured to reject all binary, we do it last so
                      # misplaced stuff is still highlighted.
@@ -1612,7 +1613,6 @@
          if (/line=/ and /size=/ and /name=/) {
                  $state{cache_is_binary} = "yEnc Encoded";
                  return $state{cache_is_binary};
-            };
          };
      };
-----------------------------------------------------------------

Seems like this way scopes make more sense. Of course, don't trust 
stranger in Internet and read code yourself before changes.

Best regards
U.ee
Technical Details
Message-ID: <r3en0g$2t1c$1@news.usenet.ee>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <r3en0g$2t1c$1@news.usenet.ee>
Subject: Cleanfeed patch suggestion
Date: Sun, 1 Mar 2020 00:01:52 +0200
From: admin@invalid.usenet.ee
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Usenet.ee
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 29 Feb 2020 22:01:52 -0000 (UTC)
Injection-Info: news.usenet.ee;
X-Mozilla-News-Host: news://news.usenet.ee:119
Content-Language: en-US