Article View: news.software.nntp
Article #90169Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
From: Jesse Rehmer
Date: Mon, 20 Mar 2023 03:25
Date: Mon, 20 Mar 2023 03:25
28 lines
2269 bytes
2269 bytes
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>
Technical Details
Message-ID:
<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-mailReferences:
<tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <9e316a26602e6764c6f722dc5c002594@news.novabbs.org> <tv8f15$2pni$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <tv8jmo$1kmu$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:25:12 +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> 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:25:12 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="53982"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:9971S5t/UyvQe8MhaqxmhdwgHLM= sha256:+MuXGYGTjy1ueUGdbLH1aUJjwVjng1qC+MmUYLBQsPo= sha1:RkJY6lSTmGc7y0IxW0e4bW6jxyc= sha256:4a8KAoUQwuhAYnVxxod+0+nmrJa2jNgilMGUT86soUY= X-Usenapp: v1.26.3/d - Full License