🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81011

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

#81011
From: Julien ÉLIE
Date: Thu, 14 May 2009 05:42
42 lines
2595 bytes
Hi D. Stussy,

>    s/:/: /  if ($_ != ~ /^[^:]+: /);
>
> You missed the trailing space.

Yep!

I have just committed your proposal.  Thanks again!


Index: mailpost.in
===================================================================
--- mailpost.in (révision 8451)
+++ mailpost.in (copie de travail)
@@ -194,6 +194,9 @@
        next ;
     }

+    # Add a space after the colon following a header name, if not present.
+    s/:/: / if ($_ !~ /^[^:]+: /);
+
     # On the first header, $line will be undefined.
     ($_, $line) = ($line, $_) ; # Swap $line and $_.

@@ -233,7 +236,7 @@
     if (/^Return-Path:\s*/sio) {
        $path = $';
        $path = $1 if ($path =~ /\<([^\>]*)\>/);
-       push@errorText, "((path: $path))\n";
+       push @errorText, "((path: $path))\n";
        next;
     }


Incidentally, @errorText is never used in mailpost...

-- 
Julien ÉLIE

« Vna salus uictis, nullam sperare salutem. » (Énée de Virgile) 
Technical Details
Message-ID: <gugavf$afc$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!takemy.news.telefonica.de!telefonica.de!ecngs!feeder2.ecngs.de!88.198.40.140.MISMATCH!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!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> <gufjm2$cir$1@aux.snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <gugavf$afc$1@news.trigofacile.com>
Subject: Re: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Date: Thu, 14 May 2009 07:42:01 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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> <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!takemy.news.telefonica.de!telefonica.de!ecngs!feeder2.ecngs.de!88.198.40.140.MISMATCH!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 42
NNTP-Posting-Host: aaubervilliers-151-1-43-71.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1242279727 10732 83.112.152.71 (14 May 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Thu, 14 May 2009 05:42:07 +0000 (UTC)
In-Reply-To: <gufjm2$cir$1@aux.snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049