Article View: news.software.nntp
Article #90171Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
From: Tom Furie
Date: Mon, 20 Mar 2023 10:36
Date: Mon, 20 Mar 2023 10:36
27 lines
1953 bytes
1953 bytes
On 2023-03-20, Jesse Rehmer <jesse.rehmer@blueworldhosting.com> wrote:
> On Mar 19, 2023 at 10:25:12 PM CDT, "Jesse Rehmer"
>>
>> Hrm, I guess another portion of the code higher up is taking precedence as
>> this didn't change the behavior with messages like:
>> <tv8i7j$q8m$1@rasp.pasdenom.info>
>
> I'm thinking it is the portion of code right above the PGP stuff:
>
> } else if (linetype & B64) {
> UUencode = 0;
> BinHex = 0;
> Base64++;
> if (Base64 > 8) {
> Type |= ARTTYPE_BASE64 | ARTTYPE_BINARY;
> return(Type);
> }
>
> I'm assuming this is counting any article with more than 8 lines of Base64
> encoded text as binary?
That certainly seems to be the case. I'd be tempted to switch the order
of this whole 'if-else' sequence so the check for "-----BEGIN PGP ..."
comes before the binary tests.
Cheers,
Tom
Technical Details
Message-ID:
<tv9cuv$3ti$1@freeq.furie.org.uk>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-mailReferences:
<tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <9e316a26602e6764c6f722dc5c002594@news.novabbs.org> <tv8f15$2pni$1@nnrp.usenet.blueworldhosting.com> <tv8jmo$1kmu$1@nnrp.usenet.blueworldhosting.com> <tv8k5h$2i1s$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <tv9cuv$3ti$1@freeq.furie.org.uk> Subject: Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP Date: Mon, 20 Mar 2023 10:36:15 +0000 From: Tom Furie <tom@furie.org.uk> References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <9e316a26602e6764c6f722dc5c002594@news.novabbs.org> <tv8f15$2pni$1@nnrp.usenet.blueworldhosting.com> <tv8jmo$1kmu$1@nnrp.usenet.blueworldhosting.com> <tv8k5h$2i1s$1@nnrp.usenet.blueworldhosting.com> 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 Injection-Date: Mon, 20 Mar 2023 10:36:15 -0000 (UTC) Injection-Info: freeq.furie.org.uk; posting-host="2001:470:1f1d:50e::11c"; logging-data="4018"; mail-complaints-to="usenet@furie.org.uk" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:IDuDdZaQipaQF1RzvMqxaOa2ctA=