🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84389

Re: INN's mailpost script - requested change.

#84389
From: Julien ÉLIE
Date: Thu, 22 Sep 2011 20:56
44 lines
2682 bytes
Hi Dieter,

> Regardless, when perl is manipulating header lines in mailpost, isn't it
> dealing with unfolded lines?
> 
> Cf. Line 192's comment:  # Gather up a single header with possible
> continuation lines into $line.

Please read the whole code:

180	    # Gather up a single header with possible continuation lines into $line.
181	    if (/^\s+/) {
182	        if (! $line) {
183	            $msg = "First line with leading whitespace!" ;
184	            if ($use_syslog) {
185	                syslog("err", $msg) unless -t STDERR;
186	            }
187	            die "$msg\n" ;
188	        }           
189	
190	        $line .= "\n" . $_ ;
191	        next ;
192	    }

$line is folded because of line 190.
We're just getting the whole header field value in $line, still folded.



> Regardless, as we have unfolded all headers while reading them, there is NO
> CODE which re-folds them for submission to NNRPD (when written to TMPFILE
> at lines 360-366).

No.

$line is then put in $_; then we have:
  $real_news_hdrs .= "$_\n";
and $real_news_hdrs is written to TMPFILE.

-- 
Julien ÉLIE

« Ce serait un tunnel pour aller de la Gaule en Bretagne. »
  (Astérix)
Technical Details
Message-ID: <j5g7en$8kd$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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-92-140.w83-199.abo.wanadoo.fr!not-for-mail
References: <j5e6c0$8ib$1@snarked.org> <87vcslti2y.fsf@windlord.stanford.edu><j5e89d$k6f$1@snarked.org> <87r539tgkk.fsf@windlord.stanford.edu> <j5eo9u$mnd$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <j5g7en$8kd$1@news.trigofacile.com>
Subject: Re: INN's mailpost script - requested change.
Date: Thu, 22 Sep 2011 22:56:55 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <j5e6c0$8ib$1@snarked.org> <87vcslti2y.fsf@windlord.stanford.edu><j5e89d$k6f$1@snarked.org> <87r539tgkk.fsf@windlord.stanford.edu> <j5eo9u$mnd$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!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-92-140.w83-199.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Sep 2011 20:56:55 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-552-1-92-140.w83-199.abo.wanadoo.fr:83.199.147.140";
 logging-data="8845"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr;
In-Reply-To: <j5eo9u$mnd$1@snarked.org>
Lines: 43
X-Original-Bytes: 2503