Article View: news.software.nntp
Article #90170Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
From: Jesse Rehmer
Date: Mon, 20 Mar 2023 03:33
Date: Mon, 20 Mar 2023 03:33
45 lines
2884 bytes
2884 bytes
On Mar 19, 2023 at 10:25:12 PM CDT, "Jesse Rehmer"
<jesse.rehmer@blueworldhosting.com> wrote:
> On Mar 19, 2023 at 9:05:25 PM CDT, "Jesse Rehmer"
> <jesse.rehmer@blueworldhosting.com> wrote:
>
>> On Mar 19, 2023 at 8:30:32 PM CDT, "Retro Guy" <Retro Guy> wrote:
>>
>>> Maybe just change:
>>>
>>> if (*ptr == '-' &&
>>> strncmp(ptr, "-----BEGIN PGP MESSAGE-----", 27) == 0)
>>> Type |= ARTTYPE_PGPMESSAGE;
>>>
>>> to:
>>>
>>> if (*ptr == '-' &&
>>> strncmp(ptr, "-----BEGIN PGP ", 15) == 0)
>>> Type |= ARTTYPE_PGPMESSAGE;
>>
>> Thanks for that, not being a C developer I didn't even put together that "27"
>> was the number of characters in the string, didn't know how to account for
>> that, and now feel like a n00b.
>>
>> I will recompile and give this a shot, I really appreciate it!
>>
>> -Jesse
>
> 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?
Technical Details
Message-ID:
<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-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>Show Full Headers
Complete Article Headers
Message-ID: <tv8k5h$2i1s$1@nnrp.usenet.blueworldhosting.com> Subject: Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP Date: Mon, 20 Mar 2023 03:33:05 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> 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> 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: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com) Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 20 Mar 2023 03:33:05 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="84028"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:/HI+ZGtdtB/QYgisx449TH/1K2A= sha256:QmFWQUtLogzRlJRH6b5aOiWgDCGkpyUbxi3kKygASV4= sha1:A7t+dE4c7sBONjvSOiXO73GfKug= sha256:A76E8UkGTkhlHcBBKW2QcnndiDvLfq+mGaJw1pQ90QU= X-Usenapp: v1.26.3/d - Full License Lines: 44