🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #41789

Re: Bugged by linux newsreaders: tin, slrn. Help me, please.

#41789
From: Greg Berigan
Date: Mon, 29 Jun 1998 00:00
206 lines
10344 bytes
At least I was clear when I sent you a forwarded copy of the news
posting.  You could have been clear when you sent me a carbon copy of
your followup.

jan@panteltje.demon.nl (Jan Panteltje) wrote:

>> Hey, the User-Agent header has a specific syntax and explicitly makes
>> advertising like that illegal!  I should know, I'm the one who got it
>> into the currently proposed standard!  The correct value for your
>> newsreader is:
>>
>>         User-Agent: NewsFleX/0.8.3
>>
>> Please remedy this in your next revision.

> Oh well, I had the intention to change this, after reading up on some
> of the specs.  Well not really specs, rfc 's are more a representation
> of what is actually happening, let us say 'request for comments'.
> But in this case, although the syntax is correct (folded line),
> I want to change it to:
> User-Agent: NewsFleX-0.8.3 http://www.panteltje.demon.nl/newsflex/

That's not valid either.  Product name and version must be separated by
a signle "/".  Advertising, including URLs, is forbidden in this header
as defined.

> But then again, maybe i will change it to
> User-Agent: NewsFleX-0.8.3 (LINUX)(http://www.panteltje.demon.nl/newsflex),
> as that seems to be the kind of format YOU are using:
> User-Agent: tin/pre-1.4-980514 (UNIX) (IRIX64/6.2 (IP25))

Spaces are preferred between CFWS blocks (Commented Folding White
Space), but a URL is still illegal syntax.  If people want to find your
website, they should be able to do a web search on the string "NewsFleX"
and find you that way.

If your newsreader only runs under LINUX then there is no purpose in
communicating this to the world in the header.  Tin compiles on several
platforms, so the information in its comment blocks serve a useful
function in tracking down any potential problems.

> If someone cannot make a script to parse that, they better start growing 
> tomatoes in stead of programming.

It isn't a matter of parsing.  It is a matter of violating the proposed
standard.

> The NewsFleX/0.8.3 format you suggest is incompatible as a filename for
> archives, like for example sunsite (read up on it sometime).
> The recommended syntax is like NewsFleX-0.8.3

Nevertheless, the correct format is to separate the product-token and
version with "/" (also making "/" illegal in each).  This is the same as
the syntax defined for User-Agent on the web.  A single syntax for both
news and the web makes it easier for programs generating both web
document requests and news postings by having a single syntax rather
than two special syntaxes depending on the transport.

"-" is legal content for the application name, so no parser will be able
to tell which is your

> Anyways, I would like to ask to whom one would send requests for features in
> NNTP (I have a strong idea about a reply syntax in the protocol, that I
> can prove increases speed a lot).

I don't know who if anyone has formed a working group for extensions to
NNTP.

> That is why the next version (this one, but it is not released yet),
> has build in automated ftp and http (recursive), but no http rendering
> yet, but it will get a http link, all pictures in it, so you can read it
> as a file offline with any browser.

If your program is going to be sending HTTP requests, you'll want a
single common syntax for both news and HTTP.

This message is longer than the original message I sent you via mail.
However, to make sure everyone is on the same page, I'm again reprinting
the section of the USEFOR draft on the User-Agent header.  The URL is:
<http://www.erols.com/dsritter/usenet-article-format-draft>.  If you
wish to propose an alternate syntax, you'll have to join the USEFOR
mailing list.  I recommend searching the USEFOR Archive
<http://www.landfield.com/usenet/usefor/> to see if a given topic is
already covered.  Subscription information is available on the page
<http://www.landfield.com/usefor/charter.html>.

Relevant section of the draft printed below.

6.14. User-Agent

          The User-Agent header contains information about the user
          agent (typically a newsreader) generating the article. This is
          for statistical purposes and tracing of standards violations
          to specific software needing correction. Although OPTIONAL,
          user agents SHOULD include this header with the articles they
          generate.

          The field MAY contain multiple product tokens and comments
          identifying the agent and any subproducts which form a
          significant part of the user agent such as external agents
          used for message composition, separated injecting agents (such
          as those used by offline newsreaders), and significant
          libraries that are part of such agents. The products are
          listed in order of their significance for identifying the
          application, not necessarily in chronological order of
          handling prior to injection. Injecting agents MAY include
          product information for servers (such as INN/1.7.2), but
          servers MUST NOT generate or modify this header to list
          themselves.

          User-Agent MUST NOT be modified after injection, but MAY be
          stripped or have its contents replaced prior to re-injection
          by another user agent such as an anonymizing gateway.

          User-Agent = "User-Agent:" SP User-Agent-content
          User-Agent-content = product *(CFWS product) [CFWS]

          At least one product MUST be present. The first token MUST NOT
          be a comment. Comments relate to the previously named product,
          not the product following it.

          product = token ["/" product-version] product-version = token

          Product tokens should be short and to the point -- they MUST
          NOT be used for advertising beyond the canonical name of the
          product or other non-essential information. Although any token
          character MAY appear in a product-version, this token SHOULD
          be used only for a version identifier (i.e., successive
          versions of the same product SHOULD differ only in the
          product-version portion of the product value). Product tokens
          MUST identify products.

          NOTE: Variations from RFC 1945:

          1. product token is required and MUST be first,
         
          2. use of other text in the syntactic usage of the product
          token which is not a token is forbidden,

          3. comment allows quoted-pair,

          4. "{" and "}" are allowed in token (product and 
          product-version) in news,

          5. octets from character sets other than ASCII are allowed.

          NOTE: Comments should be restricted to information regarding
          the product named to their left such as platform information
          and should be concise. It must not be used as an advertising
          medium (in the mundane sense) by agents.

          Recipients of header field TEXT containing octets outside the
          US-ASCII character set may assume that they represent UTF-8
          characters.

          NOTE: Variation from RFC 1945: UTF-8 replaced ISO-8859-1 as
          charset assumption.

6.14.1 Examples:

User-Agent: tin/1.2-PL2
User-Agent: tin/1.3-950621beta-PL0 (Unix) 
User-Agent: tin/unoff-1.3-BETA-970813 (UNIX) (Linux/2.0.30 (i486)) 
User-Agent: tin/pre-1.4-971106 (UNIX) (Linux/2.0.30 (i486)) 
User-Agent: Mozilla/4.02b7 (X11; I; en; HP-UX B.10.20 9000/712) 
User-Agent: Microsoft-Internet-News/4.70.1161 
User-Agent: Gnus/5.4.64 XEmacs/20.3beta17 ("Bucharest") 
User-Agent: Pluto/1.05h (RISC-OS/3.1) NewsHound/1.30 
User-Agent: inn/1.7.2 
User-Agent: inews 
User-Agent: telnet

          NOTE: Some current web proxy applications append their product
          information to the list in the User-Agent field. This is not
          recommended on the web and is forbidden for news, since it
          makes machine interpretation of these fields ambiguous.
          User-Agent is not intended to be a total audit trail of what
          software has handled the article.

          NOTE: Some existing web clients fail to restrict themselves to
          the product token syntax within the User-Agent field when
          using this header on the web. Such abuses are forbidden for
          news.

          NOTE: This header supersedes the role performed redundantly by
          "X-" headers such as X-Newsreader, X-Mailer, X-Posting-Agent,
          X-Http-User-Agent, and other headers previously used on USENET
          for this purpose. Use of these "X-" headers SHOULD be
          discontinued in favor of the single, standard User-Agent
          header which is to be used freely both in news and mail.

          NOTE: There are slight changes to the original HTTP defined
          format to the User-Agent header as noted, but headers in
          strict, common-sense compliance with RFC 1945 are compliant to
          this specification. The syntax from RFC 1945 is preferred,
          including the requirement that products and comments be
          separated by a space.

-- 
         ,=<#)-=#  <http://incolor.inetnebr.com/wotw/> (The War of the Worlds)
    ,_--//--_,
 _-~_-(####)-_~-_   Please pardon any typos.  Bandwidth is at a premium lately
(#>_--'~--~`--_<#)  and responsiveness is too sluggish to support post-editing.

Technical Details
Message-ID: <6n75fk$rla$1@unlnews.unl.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <35951422.24CFB42B@ukans.edu> <898974956.17178.0.rover.d4ee0662@news.demon.nl> <6n444v$366$1@unlnews.unl.edu> <899062284.4658.1.rover.d4ee0662@news.demon.nl>

Show Full Headers
Complete Article Headers
Message-ID: <6n75fk$rla$1@unlnews.unl.edu>
Subject: Re: Bugged by linux newsreaders: tin, slrn. Help me, please.
Date: Mon, 29 Jun 1998 00:00:00 +0000
From: Greg Berigan <gberigan@cse.unl.edu>
References: <35951422.24CFB42B@ukans.edu> <898974956.17178.0.rover.d4ee0662@news.demon.nl> <6n444v$366$1@unlnews.unl.edu> <899062284.4658.1.rover.d4ee0662@news.demon.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 366991761
Organization: http://cse.unl.edu/~gberigan/
User-Agent: tin/pre-1.4-980514 (UNIX) (IRIX64/6.2 (IP25))
Newsgroups: news.software.readers