🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Julien ÉLIE Sun, 24 Jul 2011 22:29
Empty folded line in header field (was Re: Censure ?)
#246357
Author: Julien ÉLIE
Date: Sun, 24 Jul 2011 22:29
41 lines
3045 bytes
Hi all,

For those who may be interested:

Date: Sun, 17 Jul 2011 18:51:14 +0200
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; fr; rv:1.9.1.19) Gecko/20110420 Mnenhy/0.8.3 SeaMonkey/2.0.14
Newsgroups: fr.lettres.langues-anciennes.latin
Subject: Re: Censure ?
X-Face: u<)b%~v7<8fL[]Wuuwi1xF$eOV]yWTt-UU6AdQf*1@Djz]J&-5]F}of4|7TL;
   
     "%JRG^C*#<b$:_DkLf#v0}Y-IJ)PG
Message-ID:<4e231311$0$1752$426a74cc@news.free.fr>



The second line of the X-Face: header field is "   \r\n", which is invalid
per RFC 5322:

   3.2.2.  Folding White Space and Comments
 
     There are several places in this specification where comments and FWS
     may be freely inserted.  To accommodate that syntax, an additional
     token for "CFWS" is defined for places where comments and/or FWS can
     occur.  However, where CFWS occurs in this specification, it MUST NOT
     be inserted in such a way that any line of a folded header field is
     made up entirely of WSP characters and nothing else.



It is an example of article that would fail proper distribution.
innd properly relays it.
pullnews does not (it is how I noticed the issue):  it reports "Fixing bad header"
and afterwards fails to detect the message-ID (considered to be in the body of the
message).
Hmm…  nnrpd accepts to inject the article.  Something that needs being changed… :-)

-- 
Julien ÉLIE

« Ce n'est pas en tournant le dos aux choses qu'on leur fait face. »
  (Pierre Dac)
Re: Empty folded line in header field (was Re: Censure ?)
#246360
Author: Shmuel Metz
Date: Mon, 25 Jul 2011 12:02
17 lines
2925 bytes
In <j0i6d5$qt7$1@news.trigofacile.com>, on 07/25/2011
   at 12:29 AM, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> said:

>Hmm   nnrpd accepts to inject the article.  Something that needs
>being changed  :-)

Why? It is correctly treating the text following the null line as part
of the body.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: Empty folded line in header field (was Re: Censure ?)
#246487
Author: Joshua Cranmer
Date: Tue, 09 Aug 2011 15:06
11 lines
1992 bytes
On 7/24/2011 5:29 PM, Julien ÉLIE wrote:
> The second line of the X-Face: header field is "   \r\n", which is invalid
> per RFC 5322:

Even though it is invalid for FWS, it is part of the obs-FWS construct
[it was part of RFC 822 IIRC], so a conforming RFC 5322 agent must not
emit such a line but it must still accept a message containing that line.

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads