🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262102

Comments in header fields

#262102
From: Michael Bäuerle
Date: Mon, 05 Jun 2017 12:56
32 lines
2236 bytes
Steve Crook wrote:
> Jeff-Relf.Me wrote:
> > 
> > [...]
> > Quoting rfc5322  " 3.2.2. Folding White Space and Comments ":
> > 
> >   Strings of characters enclosed in parentheses are considered comments
> >         [...]
> >   A comment is normally used in a structured field body to provide some
> >   human-readable informational text.
> > 
> >      https://tools.ietf.org/html/rfc5322#section-3.2.2
> 
> Yes, CFWS and Comments have been defined for a long time and they're
> well tested in INN.  I'd be extremely dubious about how many other
> agents may interpret them though.

I would expect that trailing CFWS creates few problems, because the
parser already got all required information when it hits the CFWS.
The rest of the header field can simply be ignored in this case.

Comments at other positions are harder to process. For something like:

   (Comments may nest and contain quoted-pair: \( (Other comment))

a parser that only counts nesting depth of parenthesis will fail.
I still don't understand why the syntax was defined this way.
A simpler syntax for comments would be sufficient for almost all cases.


[Xpost reduced]
[Subject changed to be nonpersonal]
Technical Details
Message-ID: <AABZNVTrF1YAAAuq.A1.flnews@Server4.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <sandman-5582ca15f62108f770b684b23eee8542@individual.net> <Jeff-Relf.Me@Jun.4--10.56am.Seattle.2017> <slrnojae5d.6h1.steve@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABZNVTrF1YAAAuq.A1.flnews@Server4.micha.freeshell.org>
Subject: Comments in header fields
Date: Mon, 5 Jun 2017 12:56:11 -0000
From: Michael Bäuerle <michael.baeuerle@gmx.net>
References: <sandman-5582ca15f62108f770b684b23eee8542@individual.net> <Jeff-Relf.Me@Jun.4--10.56am.Seattle.2017> <slrnojae5d.6h1.steve@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Lines: 32
Mime-Version: 1.0
X-Trace: individual.net tDd7ox4t4G2jsx/VUukm1gJwnX63uA52IJoNWhEdfUcLUqputE
X-Orig-Path: not-for-mail
Cancel-Lock: sha256:BcRNsG176dOH1q9KM5LpPYWTb+snn7dQiXiAiRtbb4w= sha1:Wxo3rKdzAVpDAcbm+1VobqmVIcQ=
Injection-Date: Mon, 5 Jun 2017 12:56:11 -0000
User-Agent: flnews/0.14 (for HP-UX)
X-Received-Bytes: 2064
X-Received-Body-CRC: 1617808937