Thread View: news.software.nntp
6 messages
6 total messages
Started by admin
Sat, 29 Feb 2020 22:01
Cleanfeed patch suggestion
Author: admin
Date: Sat, 29 Feb 2020 22:01
Date: Sat, 29 Feb 2020 22:01
30 lines
1816 bytes
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
Re: Cleanfeed patch suggestion
Author: Julien ÉLIE
Date: Mon, 02 Mar 2020 19:25
Date: Mon, 02 Mar 2020 19:25
59 lines
3497 bytes
3497 bytes
Hi,
> 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};
> - };
> };
> };
> -----------------------------------------------------------------
That's a pretty good catch.
Latest commit should indeed be fixed.
https://github.com/crooks/cleanfeed/commit/b3c6bcf6e34a6d35cad402d34c7ff76aba481c6d
--- cleanfeed.old 2020-03-02 20:13:02.484310099 +0100
+++ cleanfeed 2020-03-02 20:20:44.962272044 +0100
@@ -952,7 +952,8 @@
} else {
if (not $gr{binary}) {
return reject("Binary: misplaced binary");
- }; # End of misplaced binary check
+ }; # End of misplaced binary check
+ }; # End of file and image extensions check
# If configured to reject all binary, we do it last so
# misplaced stuff is still highlighted.
return reject("Binary Payload")
@@ -1612,7 +1613,6 @@
if (/line=/ and /size=/ and /name=/) {
$state{cache_is_binary} = "yEnc Encoded";
return $state{cache_is_binary};
- };
};
};
--
Julien ÉLIE
« Petite annonce : Artificier cherche femme canon. »
Re: Cleanfeed patch suggestion
Author: Steve Crook
Date: Mon, 02 Mar 2020 22:59
Date: Mon, 02 Mar 2020 22:59
20 lines
1195 bytes
1195 bytes
On Sun, 1 Mar 2020 00:01:52 +0200, admin@invalid.usenet.ee wrote in Message-Id: <r3en0g$2t1c$1@news.usenet.ee>: > Hello! > > Those who use cleanfeed, I suggest this patch (against crooks/cleanfeed > master branch): Hi, Thanks very much for reporting this. I've applied your patch to the master branch of the repo. I hope you don't mind me attributing it to "u.ee"? Steve -- What shall we use To fill the empty spaces Where we used to talk?
Re: Cleanfeed patch suggestion
Author: admin
Date: Tue, 03 Mar 2020 15:48
Date: Tue, 03 Mar 2020 15:48
27 lines
1507 bytes
1507 bytes
On 03.03.20 00:59, Steve Crook wrote: > On Sun, 1 Mar 2020 00:01:52 +0200, admin@invalid.usenet.ee wrote in > Message-Id: <r3en0g$2t1c$1@news.usenet.ee>: > >> Hello! >> >> Those who use cleanfeed, I suggest this patch (against crooks/cleanfeed >> master branch): > > Hi, > > Thanks very much for reporting this. I've applied your patch to the > master branch of the repo. I hope you don't mind me attributing it to > "u.ee"? Hello! That attribution is fine. I am little bit embarrassed though: Julien pointed very gently out my mistake with comment placement (End of misplaced binary check). Best regards, U.ee > > Steve >
Re: Cleanfeed patch suggestion
Author: yamo'
Date: Tue, 03 Mar 2020 16:08
Date: Tue, 03 Mar 2020 16:08
25 lines
1581 bytes
1581 bytes
Hi, admin@invalid.usenet.ee a tapoté le 03/03/2020 16:48: >> Thanks very much for reporting this. I've applied your patch to the >> master branch of the repo. I hope you don't mind me attributing it to >> "u.ee"? > Hello! > > That attribution is fine. I am little bit embarrassed though: Julien > pointed very gently out my mistake with comment placement (End of > misplaced binary check). > > Best regards, > U.ee I've replaced my old cleanfeed 337 with this version. It's working fine! Thank you -- Stéphane
Re: Cleanfeed patch suggestion
Author: Julien ÉLIE
Date: Tue, 03 Mar 2020 20:18
Date: Tue, 03 Mar 2020 20:18
18 lines
1704 bytes
1704 bytes
Hi U.ee, >> Thanks very much for reporting this. I've applied your patch to the >> master branch of the repo. I hope you don't mind me attributing it to >> "u.ee"? > > That attribution is fine. I am little bit embarrassed though: Julien > pointed very gently out my mistake with comment placement (End of > misplaced binary check). Don't worry, I'm fine with Steve's commit. Thanks for you kind message, though. -- Julien ÉLIE « Petite annonce : Artificier cherche femme canon. »
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads