🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80996

Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available

#80996
From: D. Stussy
Date: Tue, 12 May 2009 23:12
22 lines
2088 bytes
Here's an error that bit me today when I was testing my mail-news gateway
feature:

inews failed: inews: no space after colon in
"X-DomainKey-Signature:a=rsa-sh..." inews: article not posted

Note that SMTP (RFC 5322, esp. Section 3) doesn't require a space after the
colon of the header name, while NNTP/Usefor (whatever it's called) does.
We need to make certain that headers carried in $real_news_hdrs and
$weird_mail_hdrs have a space after the colon.

Something like:
    s/:/: /  if ($_ != ~ /: /);
placed just before the comment (about line 185):
    # On the first header, $line will be undefined.
should do, I think.  Should this operate on $line instead of $_ ?

In other words, if colon-space does not exist (on the line after
unfolding), change the first colon to colon-space.  That first colon should
always be the colon following a header name.

Technical Details
Message-ID: <gucvpb$2oo$1@aux.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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
References: <878wnex9f4.fsf@windlord.stanford.edu> <75mc7qF195jsaU1@mid.individual.net> <gtj1pq$4hl$1@aux.snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <gucvpb$2oo$1@aux.snarked.org>
Subject: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Date: Tue, 12 May 2009 16:12:33 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <878wnex9f4.fsf@windlord.stanford.edu> <75mc7qF195jsaU1@mid.individual.net> <gtj1pq$4hl$1@aux.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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 22
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net
X-Trace: aux.snarked.org 1242169963 2840 71.106.211.188 (12 May 2009 23:12:43
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Tue, 12 May 2009 23:12:43 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478