πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81009

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

#81009
From: D. Stussy
Date: Wed, 13 May 2009 23:04
30 lines
2332 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gudp3l$t5h$1@news.trigofacile.com...
> > inews failed: inews: no space after colon in
> > "X-DomainKey-Signature:a=rsa-sh..." inews: article not posted
> >
> > Something like:
> >    s/:/: /  if ($_ != ~ /: /);
>
> What if I have something like "X-Test:host: me"?
> It is invalid.
>
> A more robut regexp should be used, like /^([^:]+):/ or with the
> exact list of allowed characters for a header name.

Whatever you come up with, it needs to be fixed.  Well, that's why I posted
"something like ..."  So, not even I got the correction correct on the
first try.  I'm still figuring out perl.  ;-)

    s/:/: /  if ($_ != ~ /^[^:]+: /);

We don't need the parentheses inside the regex as we're not using it later.
You missed the trailing space.

> Other problems may occur (like comments on a message-ID or 250 octets
> only for a message-ID).

Noted, but currently we don't check for those either - and so far, they
haven't appeared.  This one did.

Technical Details
Message-ID: <gufjm2$cir$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> <gucvpb$2oo$1@aux.snarked.org> <gudp3l$t5h$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gufjm2$cir$1@aux.snarked.org>
Subject: Re: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Date: Wed, 13 May 2009 16:04:31 -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> <gucvpb$2oo$1@aux.snarked.org> <gudp3l$t5h$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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 30
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 1242255874 12891 71.106.211.188 (13 May 2009 23:04:34
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Wed, 13 May 2009 23:04:34 +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