πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83513

Re: Fixes to mailpost -- Long headers

#83513
From: D. Stussy
Date: Fri, 08 Oct 2010 01:57
39 lines
3079 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:i8l9ug$6m7$1@news.trigofacile.com...
> > Also, I have occasionally noted this with DKIM signatures that use long
> > keys.  Preserving part of that field seems a better solution than
deleting
> > it entirely as the message gates.
>
> Why would it be a better solution to alter a header?
> The DKIM signature is useless if altered.
> And a header ending with " (truncated)..." may see its syntax broken!
> If useless for Netnews, just drop it.

1)  I don't want to drop it if it's within the permitted length.  Granted
that dropping it will still leave an Authentication-Results header that
says it was valid, but I believe in modifying only as necessary.

2)  Granted truncating breaks it, but it is also leaving SMTP and is
considered delivered.  If the message were to re-enter SMTP, a truncated
header should then be discarded, especially in favor of a new signature (if
applicable).

3)  To drop such headers, we need to know their names in advance.  We may
not know in advance the name of an X-* header that is too long.

> > Similarly with a "References:" header,
> > even though NNTP would have a different size reducing algorithm
(keeping
> > the first and last MIDs).
>
> Yep, we had a patch from Harald Dunkel about that:
>     http://inn.eyrie.org/trac/changeset/9020
>
> The References: header is now properly dealt with by mailpost.

Right, but the handling there is a special case.  My suggestion is for the
generic case of an overly-long header+data.  You seem exceptionally
resistant to the idea.

Technical Details
Message-ID: <i8ltqv$amv$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!news.linkpendium.com!news.linkpendium.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail
References: <i4s5et$6km$1@snarked.org> <i8jp5k$qo6$1@snarked.org> <i8l2ka$ugv$1@news.trigofacile.com> <i8l8s1$ubd$1@snarked.org> <i8l9ug$6m7$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <i8ltqv$amv$1@snarked.org>
Subject: Re: Fixes to mailpost -- Long headers
Date: Thu, 7 Oct 2010 18:57:02 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <i4s5et$6km$1@snarked.org> <i8jp5k$qo6$1@snarked.org> <i8l2ka$ugv$1@news.trigofacile.com> <i8l8s1$ubd$1@snarked.org> <i8l9ug$6m7$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!news.linkpendium.com!news.linkpendium.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 39
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
Injection-Date: Fri, 8 Oct 2010 01:57:51 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-106-210-230.lsanca.dsl-w.verizon.net:71.106.210.230";
 logging-data="10975"; mail-complaints-to="newsmaster+complaints@snarked.org"
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Original-Bytes: 2853