🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80190

Re: posting oooold email archive to my inn2 server

#80190
From: Julien ÉLIE
Date: Fri, 27 Feb 2009 18:56
50 lines
2684 bytes
Hi Jon,

>> I agree that it still considers line 19 a header. I will check if
>> 16, 17 and 18 are empty.
>
> They are indeed empty. They do have a dos? newline ^M which is
> strange because it runs on a Linux debian.

Thanks!
It was a bug in mailpost.  Fixed in INN 2.4.6.

--- mailpost.in 2009-02-27 18:54:27 UTC (rev 8359)
+++ mailpost.in 2009-02-27 18:56:16 UTC (rev 8360)
@@ -147,7 +147,8 @@
     }
 }

-chomp $_;
+# Remove (CR)LF at the end of each line.
+s/\r?\n$//;

 my $line = undef;
 if (/^From\s+([^\s]+)\s+/) {
@@ -167,7 +168,8 @@

     $_ = <STDIN> ;
     last unless defined $_ ;
-    chomp ;
+    # Remove (CR)LF at the end of each line.
+    s/\r?\n$//;

     # Gather up a single header with possible continuation lines into $line.
     if (/^\s+/) {
@@ -428,7 +430,8 @@
   }
     for (;;) {
     $_ = <TMPFILE> ;
-    chomp ;
+    # Remove (CR)LF at the end of each line.
+    s/\r?\n$//;
     last if defined($_) && /^$/ ;

     if (/^Newsgroups:\s*/sio) {

-- 
Julien ÉLIE

« Il ne faut compter que sur soi-même.
  Et encore, pas beaucoup. » (Tristan Bernard) 
Technical Details
Message-ID: <go9d2t$jek$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!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <go3dcd$upa$1@munin.diku.dk> <vxkprh6u1mp.fsf@mesquite.kleinpaste.org> <go3faj$ut9$1@munin.diku.dk> <go43ra$90n$1@news.trigofacile.com> <go5j84$147p$1@munin.diku.dk> <go6pqj$fl$1@news.trigofacile.com> <go712f$17e5$1@munin.diku.dk> <go8ijk$1bgb$1@munin.diku.dk>

Show Full Headers
Complete Article Headers
Message-ID: <go9d2t$jek$1@news.trigofacile.com>
Subject: Re: posting oooold email archive to my inn2 server
Date: Fri, 27 Feb 2009 19:56:53 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <go3dcd$upa$1@munin.diku.dk> <vxkprh6u1mp.fsf@mesquite.kleinpaste.org> <go3faj$ut9$1@munin.diku.dk> <go43ra$90n$1@news.trigofacile.com> <go5j84$147p$1@munin.diku.dk> <go6pqj$fl$1@news.trigofacile.com> <go712f$17e5$1@munin.diku.dk> <go8ijk$1bgb$1@munin.diku.dk>
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!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 50
NNTP-Posting-Host: amontpellier-152-1-54-112.w83-197.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1235761053 19924 83.197.19.112 (27 Feb 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Fri, 27 Feb 2009 18:57:33 +0000 (UTC)
In-Reply-To: <go8ijk$1bgb$1@munin.diku.dk>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049