Article View: news.software.nntp
Article #90174Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
From: Tom Furie
Date: Mon, 20 Mar 2023 16:37
Date: Mon, 20 Mar 2023 16:37
62 lines
3586 bytes
3586 bytes
On 2023-03-20, Jesse Rehmer <jesse.rehmer@blueworldhosting.com> wrote: > I'm a bit confused by it's intended behavior, as I thought it was only for > rejecting misplaced binaries, but looking at the logs I see it is > identifying these particular messages as some other type, but according to > what is in lib/defs.h, I can't quite make heads or tails of how these > translate. > > Take these two entries for example: > > 2023-03-20 01:00:03.737 somehost - <tv8sp3$fql$1@rasp.pasdenom.info> 2642 > 020b00 IncomingFilter > 2023-03-20 01:00:03.738 somehost - <tv8sp3$fql$1@rasp.pasdenom.info> 2656 > 020b00 IncomingFilter > > The article type logged is "020b00", which that string does not appear > anywhere in the source code. In lib/defs.h there is the following block: > > /* > * Article types that diablo can determine when receiving an article > */ > > #define ARTTYPE_NONE 0x000000 > > #define ARTTYPE_DEFAULT 0x000001 > #define ARTTYPE_CONTROL 0x000002 > #define ARTTYPE_CANCEL 0x000004 > > #define ARTTYPE_MIME 0x000100 > #define ARTTYPE_BINARY 0x000200 > #define ARTTYPE_UUENCODE 0x000400 > #define ARTTYPE_BASE64 0x000800 > #define ARTTYPE_MULTIPART 0x001000 > #define ARTTYPE_HTML 0x002000 > #define ARTTYPE_PS 0x004000 > #define ARTTYPE_BINHEX 0x008000 > #define ARTTYPE_PARTIAL 0x010000 > #define ARTTYPE_PGPMESSAGE 0x020000 > #define ARTTYPE_YENC 0x040000 > #define ARTTYPE_BOMMANEWS 0x080000 > #define ARTTYPE_UNIDATA 0x100000 > > #define ARTTYPE_ALL 0xFFFFFF This looks like a bitfield map, so the 020b00 you see above equates to a sum of PGPMESSAGE + BASE64 + BINARY + MIME. At least it's recognised the PGP element. The size of the signature (greater than the 8 line limit in the earlier check) seems to be what triggers the filter to flag the article as binary. > Other articles that are misplaced binaries show up in the logs like this: > > 2023-03-20 02:50:35.991 somehost - > <001d0260a48f41ff95a5dd1ff1830a4d@lfxlxgf.ytv> 1737 050200 IncomingFilter > > Where the article type is logged as "050200" but again, I'm having a hard > time understanding what this is truly supposed to indicated as its > detected type. That 050200 says the article is a partial binary in yenc encoding. Cheers, Tom
Technical Details
Message-ID:
<tva24q$dcm$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> <tv8jmo$1kmu$1@nnrp.usenet.blueworldhosting.com> <tv8k5h$2i1s$1@nnrp.usenet.blueworldhosting.com> <tv9cuv$3ti$1@freeq.furie.org.uk> <tv9qce$dtq$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <tva24q$dcm$1@freeq.furie.org.uk> Subject: Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP Date: Mon, 20 Mar 2023 16:37:46 +0000 From: Tom Furie <tom@furie.org.uk> References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <tv8jmo$1kmu$1@nnrp.usenet.blueworldhosting.com> <tv8k5h$2i1s$1@nnrp.usenet.blueworldhosting.com> <tv9cuv$3ti$1@freeq.furie.org.uk> <tv9qce$dtq$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 16:37:46 -0000 (UTC) Injection-Info: freeq.furie.org.uk; posting-host="2001:470:1f1d:50e::11c"; logging-data="13718"; mail-complaints-to="usenet@furie.org.uk" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:Zr0IDthcyX8g9iE7s+J8sAgtc8Y= Lines: 61