🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83503

Fixes to mailpost -- Long headers - was Re: Please consider this INN patch for mailpost

#83503
From: D. Stussy
Date: Thu, 07 Oct 2010 06:25
25 lines
2211 bytes
I have noted another problem recently:

Some mail, because of its source (Yahoo), contains a [custom] header with
data that exceeds 998 characters (excluding the trailing CR+LF).  Should
this program deal with that problem for mail it is gating, or not (or
optional)?

If so, I suggest altering the header at position 980 with "
(truncated)...", which makes the length 995 characters (excluding CR+LF),
thus less than the 998 character limitation for article headers with
minimal information loss.

As this patch is trivial (one carefully placed line), I shall let the ISC
INN maintainers actually write the patch.  However, as noted, it should be
something like:

  $line = left($line, 980) . " (truncated)..."  if length($line) > 998;

Where $line is the actual variable containing the header line (both header
name and data).  I did not look back at the actual script to see if $line
is the actual variable.



Technical Details
Message-ID: <i8jp5k$qo6$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!num2.nntp.ams.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!news.glorb.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail
References: <i4s5et$6km$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <i8jp5k$qo6$1@snarked.org>
Subject: Fixes to mailpost -- Long headers - was Re: Please consider this INN patch for mailpost
Date: Wed, 6 Oct 2010 23:25:21 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <i4s5et$6km$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!num2.nntp.ams.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!news.glorb.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 25
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
Injection-Date: Thu, 7 Oct 2010 06:25:56 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-106-210-230.lsanca.dsl-w.verizon.net:71.106.210.230";
 logging-data="27398"; 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