๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Jeff-Relf.Me Sun, 04 Jun 2017 17:56
Jonas Eklundh should learn what "(Comments)" are ( in NNTP headers ).
#262098
Author: Jeff-Relf.Me
Date: Sun, 04 Jun 2017 17:56
24 lines
2279 bytes
Mr. DFS replied to Jonas Eklundh:
> > <https://tools.ietf.org/html/rfc2822#section-3.3>
> > No room for city name or any other data, I'm afraid.
> > 
> > It's like saying the standard for the References header
> > doesn't specify what can and can not come after the list of
> > references, so why not add your car model there? :-D
> 
> Yeah, it's bogus.
> But why are you failing only some dates that don't adhere to the 'standard'?
> Sat,  2 Apr 2016 20:56:38 +0200 (CEST)  should fail in your code, too.

The "(Seattle)" in my "Date:" line is a prefectly _legal comment.
Jonas Eklundh should learn what "(Comments)" are ( in NNTP headers )
and remove them before passing a "Date:" line to php's strtotime().

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
Re: Jonas Eklundh should learn what "(Comments)" are ( in NNTP headers ).
#262101
Author: Steve Crook
Date: Mon, 05 Jun 2017 10:55
36 lines
2656 bytes
On Sun, 04 Jun 2017 10:56:44 -0700 (Seattle), Jeff-Relf.Me  @. wrote in
Message-Id: <Jeff-Relf.Me@Jun.4--10.56am.Seattle.2017>:

> Mr. DFS replied to Jonas Eklundh:
>> > <https://tools.ietf.org/html/rfc2822#section-3.3>
>> > No room for city name or any other data, I'm afraid.
>> > 
>> > It's like saying the standard for the References header
>> > doesn't specify what can and can not come after the list of
>> > references, so why not add your car model there? :-D
>> 
>> Yeah, it's bogus.
>> But why are you failing only some dates that don't adhere to the 'standard'?
>> Sat,  2 Apr 2016 20:56:38 +0200 (CEST)  should fail in your code, too.
>
> The "(Seattle)" in my "Date:" line is a prefectly _legal comment.
> Jonas Eklundh should learn what "(Comments)" are ( in NNTP headers )
> and remove them before passing a "Date:" line to php's strtotime().
>
> 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.

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Comments in header fields
#262102
Author: 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]
A _Human_ Readable TimeZone comment. -- Re: Jonas Eklundh.
#262106
Author: Jeff-Relf.Me
Date: Mon, 05 Jun 2017 18:41
11 lines
1768 bytes
You ( Steve Crook ) replied ( to me ):
> > The "(Seattle)" in my "Date:" line is a prefectly _legal comment.
> > Jonas Eklundh should learn what "(Comments)" are ( in NNTP headers )
> > and remove them before passing a "Date:" line to php's strtotime().
> 
> 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.

Right, but a _Human_ Readable TimeZone comment, after the date, 
is quite ubiquitous.   _Human_ Readable.
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