🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90163

Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP

#90163
From: Jesse Rehmer
Date: Mon, 20 Mar 2023 02:05
21 lines
1937 bytes
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
Technical Details
Message-ID: <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
References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <9e316a26602e6764c6f722dc5c002594@news.novabbs.org>

Show Full Headers
Complete Article Headers
Message-ID: <tv8f15$2pni$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
Date: Mon, 20 Mar 2023 02:05:25 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <9e316a26602e6764c6f722dc5c002594@news.novabbs.org>
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 02:05:25 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="91890"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:UMYjZ8tVrqoTLcxP04g9x+Y80wY= sha256:zdNvEsUW0ZcrydEfZH0pXeqFlvsHYGZfqT/DcU9yYIQ= sha1:cMvVHv0Wt51g2EmUEA9dy/M84XU= sha256:ccq05CyE3XZeWpUgfUVYzEzKKywVH1ewsdLn3845770=
X-Usenapp: v1.26.3/d - Full License
Lines: 20